-
Notifications
You must be signed in to change notification settings - Fork 29
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Requires Node16/NodeNext? #416
Comments
Here is the output of piping tsc to node: λ tsc result-functional.ts | node SyntaxError: Unexpected token ':' Node.js v18.4.0 |
Thanks so much for filing this issue, and for using True Myth! |
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 |
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) |
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 |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
I was trying to work through the "Just the API, please" section of the Setup document.
When I entered the line
import Result, { err, map, ok, string } from 'type-script/result';
, Webstorm reports that it cannot find the module 'true-myth/result. I confirmed that I had installed
true-myth. Additionally, I noticed that Webstore identified the module as coming from 'node_modules/true-myth/dist/public/result.d.ts' which seemed to be correct. (I had created the Webstorm project by executing
yarn create react-app --template typescript learn-true-myth`)The same error occurred in a different environment using an environment with
ts-node
installed. Finally, I executed the codetsc result-functional.ts | node
in my shell and saw the same error.When I changed the import statement to
import Result, { err, map, ok, string } from 'type-script/dist/public/result';
Webstorm reported no error.What is the correct way to import items from
true-myth
?P. S. I'm running on a 64-bit installation of Windows-10. My shell is a Git bash shell running
zsh
in WSL2.The text was updated successfully, but these errors were encountered: