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
Rollup package issues after (#10349) #10741
Comments
…ecutor so it is an opt-in feature - Also adds skipTypeField option in case that is causing issues for users - Fixes nrwl#10741
…ecutor so it is an opt-in feature - Also adds skipTypeField option in case that is causing issues for users - Fixes nrwl#10741
In the next release, Nx will not generated |
My team encountered issues because Nx also started adding |
How do we remove the exports field on the current version? My build is breaking |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Introduced after feat(web): add support for Node ESM when used to package SSR-ready library (#10349)
Current Behavior
New feature causes issues in tolling that does not support
type: module
andexports
. CSS can't be imported via @import in other CSS files and import in JS/TS and missing react/jsx-runtime error is getting thrown. If I removetype: module
andexports
it does work. CSS import from lib does work if CSS is added toexports
but only in JS, not in CSS.Expected Behavior
@import
in CSS filesSteps to Reproduce
Here is reproduction Gasket (NextJS with React 17) repo https://github.com/radulle/gasket-issue. It's interesting that pure nextjs app does not have react/jsx-runtime issue https://github.com/radulle/nextjs-issue. This is NX repo where lib is generated https://github.com/radulle/nx-issue. I added FIXME comments with some conclusions in both repos that use the lib.
Failure Logs
Environment
NextJS apps provided in 2 repos, one with React 18 and one React 17.
The text was updated successfully, but these errors were encountered: