--light This means that there is a non-existent variable referenced somewhere. If you are working in a browser environment and need a syntax that is comparable to need, you can use the syntax for ESM import and export. But even when you are running the code using Node, you may still see the require is not defined error because of your configurations.Heres the error logged on the console:$ node index.js ..and I get the error: Uncaught ReferenceError: require is not defined. Finally, use it as below.
uncaught referenceerror requirejs is not defined
- 2021년 1월 22일