Gayathri Kumaran posted: " SyntaxError: Cannot use import statement outside a module - This error occurs when you use ES6 imports in your node.js code. To fix this just add "type": "module" to your package.json file. { . . "type": "module" . . } "
|

No comments:
Post a Comment
Note: Only a member of this blog may post a comment.