Skip to content
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

fix(nextjs): guard against missing webpack-loader 'issuer' field #13006

Closed
wants to merge 1 commit into from

Conversation

Miikis
Copy link

@Miikis Miikis commented Nov 5, 2022

Next.js v13+ removed the 'issuer' field from their css/sass loaders. This breaks the nx-next plugin 'withNx'. This PR just adds a check to ensure the 'issuer' field is still there. Not the most robust fix but it should at least maintain backwards-compatibility w/ folks using next.js < 13.

ISSUES CLOSED: #12916, #12912

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #

Next.js v13+ removed the 'issuer' field from their css/sass loaders. This breaks the nx-next plugin
'withNx'. This PR just adds a check to ensure the 'issuer' field is still there. Not the most robust
fix but it should at least maintain backwards-compatibility w/ folks using next.js < 13.

ISSUES CLOSED: nrwl#12916, nrwl#12912
@nx-cloud-staging
Copy link

Nx Cloud Report

CI is running for commit 4c5e28c.

📂 Click to track the progress, see the status, the terminal output, and the build insights.


Sent with 💌 from NxCloud.

@vercel
Copy link

vercel bot commented Nov 5, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
nx-dev ⬜️ Ignored (Inspect) Nov 5, 2022 at 4:38AM (UTC)

@taosx
Copy link

taosx commented Nov 6, 2022

This looks almost the same as #12973 but it's missing one line.

@Miikis
Copy link
Author

Miikis commented Nov 6, 2022

Ah, I didn't see that! My bad. I'll close this one.

@Miikis Miikis closed this Nov 6, 2022
@terrymun
Copy link

terrymun commented Nov 7, 2022

Thank you so much for looking into this :) really appreciate the quick fix!

@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using next@13.0.1 causes build to fail due to nextCssLoader.issuer being undefined
3 participants