-
-
Notifications
You must be signed in to change notification settings - Fork 532
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 ts-node to run custom script in Expo project #929
Comments
Do you have a reproduction I can try? |
@blakeembrey Sorry for late reply. I have created an example to reproduce this error, you can see it here ts-node-next-expo. It's the |
@Lpaydat Are you on Node.js 13? |
Just checked it out, |
Assuming the most recent comment is accurate, we can close this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, noob here.
I have some ReactJs project which is run perfectly on every aspect.
But recently I want to make it monorepo and I chose Expo for this job.
I can make most of code works except some custom scripts.
It say
SyntaxError: Cannot use import statement outside a module
and the line of code that lead to this error wasnode_modules/expo/AppEntry.js
which is in themain
parameter inpackage.json
.This is the full log:
and this is the content of
scripts/helpers/tsconfig.json
:This error not occur on every scripts, just some custom script commands and all error disappear if I remove
main
field frompackage.json
.I tried to search for solution for hours and tried a bunch of methods with no results. T__T
The text was updated successfully, but these errors were encountered: