Requires Node16/NodeNext? #432
-
I was trying to work through the "Just the API, please" section of the Setup document. When I entered the line The same error occurred in a different environment using an environment with When I changed the import statement to What is the correct way to import items from P. S. I'm running on a 64-bit installation of Windows-10. My shell is a Git bash shell running |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
Here is the output of piping tsc to node: λ tsc result-functional.ts | node SyntaxError: Unexpected token ':' Node.js v18.4.0 |
Beta Was this translation helpful? Give feedback.
-
Thanks so much for filing this issue, and for using True Myth! |
Beta Was this translation helpful? Give feedback.
-
I seem to encounter similar errors when I try to run jest tests in Webstorm using C:\Users\larry.jones\AppData\Roaming\npm\yarn.cmd test
Test Suites: 1 failed, 1 total |
Beta Was this translation helpful? Give feedback.
-
I believe this is a function of your Node and TS configurations, based on the issues you're seeing. Per the release notes for v6, you must:
If all of those are true and you’re still having this issue, please let us know! (Related, but not identical: #380) |
Beta Was this translation helpful? Give feedback.
-
I'm experiencing the same issue. The issue with the
to
but that breaks a lot of my other imports. Is there a way to have True Myth work with |
Beta Was this translation helpful? Give feedback.
I believe this is a function of your Node and TS configurations, based on the issues you're seeing. Per the release notes for v6, you must:
moduleResolution: "Node16"
in yourtsconfig.json
type: "module"
or usingimport()
to import the files if in a CJS buildIf all of those are true and you’re still having this issue, please let us know!
(Related, but not identical: #380)