My code is working but it's giving me a warning "ReferenceError: require is not defined", can you help me out, why it's giving this error/warning?

Tell us what’s happening:

My code is working fine and completing all the test cases, it’s just that it’s giving me a warning/error “ReferenceError: require is not defined”. I don’t get it why?

Your code so far


import {uppercaseString, lowercaseString} from './string_functions.js';  
// Only change code above this line

uppercaseString("hello");
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.149 Safari/537.36.

Challenge: Reuse JavaScript Code Using import

Link to the challenge:

5 posts were merged into an existing topic: Reuse JavaScript Code Using Import [BUG]