Closed mnn closed 5 years ago
Found https://github.com/emmanueltouzery/prelude.ts/issues/18#issuecomment-420527325 and the advice in the link works. I still think the name choice is very poor, if it is not supported by TS by default. I almost abandoned trying this library because of this...
i don't understand, what is the advice that works? I would assume that if you got the error An import path cannot end with a '.ts' extension
that would mean that you didn't run npm install
after adding prelude to your dependencies?
What is it that you did to fix it in the end? I didn't expect it to be a hurdle honestly, I'm interested in what was the fix for you.
ah the issue would be the module system being es2015. certainly I can add a FAQ entry for that. Maybe I'll consider again renaming.
Adding "moduleResolution": "node"
to tsconfig.json
. Other libraries were working without that option.
Yes, please at least make a note in FAQ or installation, so others aren't as confused as I was :).
I am trying your library:
But I got this error:
So I tried only
prelude
as it suggests and that crashes with this:When I was installing the package I thought the name is a bit weird, but I didn't expect it is not supported by TypeScript.
TS: 3.1.3 prelude.ts: 0.8.1