Error: ES6: Use * to Import Everything from a File

Well I am getting one of these errors:- ReferenceError: require is not defined.

Can anyone please help me out?

Challenge:- ES6: Use * to Import Everything from a File

Code so far



import * as stringFunctions from "./string_functions.js";
// add code above this line

stringFunctions.uppercaseString("hello");
stringFunctions.lowercaseString("WORLD!");

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36.

Challenge: Use * to Import Everything from a File

Link to the challenge:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/es6/use--to-import-everything-from-a-file

Welcome, mrvee.

Does the test not pass, when you hit Run Tests?

Hello Sky020!

No, it does not pass the test when I hit Run Tests

Your code is fine, I try it and it pass.
Maybe try to restart the browser?

Doesnt work :frowning: Tried Firefox and edge too, still the same result :confused:

Bump //Problem still exists :frowning:

Thank you!! I thought I was the only one it was doing that to.