-
-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use import statement outside a module #465
Comments
Hi @davidLpt,
Can you please give us more thorough steps to reproduce? Also, are you using a bundler? |
Hi, thanks for replying, |
Thanks a lot for that additional information. We might need more detailed steps to reproduce. Namely, calling This indicates that there is something additional in your configuration which is triggering this problem and we would need some help to identify what this is:
Thanks! |
ok, so this is the full picture:
/Users/david/.npm/_npx/69f147a403d50f09/node_modules/human-signals/src/main.js:1 SyntaxError: Cannot use import statement outside a module
|
Thanks a lot for the additional information. I tried running
It seems like the problem here is that
It seems like the problem is that Looking at issues in |
yes I ran into the same problem, so I tried to download the source of create-guten-block and replace the dependencies by their newer versions. That's when this error disappeared and I ran into the one I posted in my initial message... |
I am getting a strong sense that this problem is most likely to be related to I would suggest posting an issue to upgrade |
yes you're probably right, this thing feels like a huge rabbit hole....... Thank you again for taking the time to answer me, really appreciated |
I am going to close this issue as it strongly feels this is a problem with |
I have the same issues with a fresh codebase setup of "devDependencies": {
"@types/ejs": "^3.1.0",
"@types/jest": "^27.0.3",
"@types/node": "^17.0.0",
"@typescript-eslint/eslint-plugin": "^5.7.0",
"@typescript-eslint/parser": "^5.7.0",
"eslint": "^8.5.0",
"eslint-config-xo": "^0.39.0",
"eslint-config-xo-typescript": "^0.47.1",
"eslint-plugin-jest": "^25.3.0",
"jest": "^27.4.5",
"ts-jest": "^27.1.2",
"ts-node": "^10.4.0",
"ts-node-dev": "^1.1.8",
"typescript": "^4.5.4"
},
"dependencies": {
"ejs": "^3.1.6",
"execa": "^6.0.0",
"fs-jetpack": "^4.3.0"
} |
Hi @ch1ll0ut1, |
Hi, I get this error:
this happens with the human-signals dependency, I use node 16.2.0, any idea how to fix it?
The text was updated successfully, but these errors were encountered: