-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
swc-node issue importing files outside of root directory #703
Comments
had same issue with pnpm monorepo |
Experiencing the same issue |
A |
same problem,i have ts project with client and server ,server import some client shared ts code,and have this issue |
Also experiencing this – could we please get some support on this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
swc-node throws a SyntaxError and crashes when importing files from outside the directory, even if included in the tsconfig files property.
This works with both tsc and ts-node.
I did look for any swc configuration options that might affect this, but didn't find anything that seemed relevant or that helped, but it's possible I'm just missing something in the config here.
See this repo for a basic example: https://github.com/kg-jcaron/swc-issue-repro
Thanks!
Input code
No response
Config
No response
Playground link
No response
Expected behavior
I expect swc-node to match the behaviour of tsc and ts-node and run without errors.
Actual behavior
Throws a SyntaxError and crashes:
Version
1.3.38
Additional context
No response
The text was updated successfully, but these errors were encountered: