Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js version error

**ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and 'C:Users	empeDesktopgulp-startpackage.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the
'.cjs' file extension.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #version #error
ADD COMMENT
Topic
Name
9+2 =