-
I created a basic React App with Typescript using I think this is some strange way Webpack behaves with the config options of I also just wanted to thank you for this great library. It's my go-to destination for encryption/signing/JWT ... |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
Minimal Example: https://codesandbox.io/s/crimson-darkness-35vtm?file=/src/App.tsx |
Beta Was this translation helpful? Give feedback.
-
webpack 4 does not support subpath exports. webpack 5 has no issue |
Beta Was this translation helpful? Give feedback.
-
For the record this is not a problem with react, nor jose. Webpack 4 used by create-react-app does not support a required module resolution feature, webpack 5 does. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick answer! I thougt create-react-app is already using Webpack 5 but apparently I was wrong. |
Beta Was this translation helpful? Give feedback.
-
I can confirm jose works perfectly with webpack 5. I've used this bolierplate for a quick test: https://github.com/rwieruch/minimal-react-webpack-babel-setup |
Beta Was this translation helpful? Give feedback.
-
I'm done waiting for these ecosystems to catch up. jose v4.x will be coming out today/tomorrow with only top level named exports that solve all these tools' problems. |
Beta Was this translation helpful? Give feedback.
webpack 4 does not support subpath exports. webpack 5 has no issue