-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Module not found - Node version 14.15.1 #143
Comments
Whatever loader used by the stack you use to compile does not support subpath exports. This is not a bug in the library but a lack of node's module resolution support in your stack. You can resolve to directly import the specific dist file but it's not the regular way and you probably won't get types. |
@AlexandreB27 I've published an experimental version hoping to somehow support these left behind runtimes and loaders. npm install [email protected] Instead of Please come back to me with details whether that worked for you and definitely more details on what you use to compile the code you've posted above. |
@panva, Hello sorry to resurrect an old issue, I had the same problem on a react app with the last version (3.11.1) but it's working well with |
@tmmschmit I'm not going to be moving forward with a single root export module. Over time tooling ecosystems will pick up the Subpath Conditional schemes. If your tooling doesn't support simply |
For folks looking for TypeScript support of export mapping in package.json, it's supposed to be in the next TypeScript release, 4.3 but no code has appeared yet. The tracking issue for support is at microsoft/TypeScript#33079 For now, I'm doing things like the following:
Not great because of course, I don't get any type-checking. I've searched GitHub to see what others are doing and it looks like using |
Hello
I want to use your library, especially jwt part of your library. But, when I import jose/jwr/sign with ESM import, I have an error on module not found :
Module not found: Error: Can't resolve 'jose/jwt/sign'
To Reproduce
I initialized an angular project and I ran
npm install jose@3
Code to reproduce the behaviour:
Environment:
jose
version: v3.5.1What I did wrong ?
The text was updated successfully, but these errors were encountered: