공부
[javascript] SyntaxError: Cannot use import statement outside a module
승가비
2022. 12. 1. 12:43
728x90
// package.json
{
"type": "module"
}
SyntaxError: Cannot use import statement outside a module
I've got an ApolloServer project that's giving me trouble, so I thought I might update it and ran into issues when using the latest Babel. My "index.js" is: require('dotenv').config() imp...
stackoverflow.com
728x90