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 errors on Next.JS 13 with appDir enabled #279

Merged
merged 1 commit into from
Nov 1, 2022

Conversation

cornedor
Copy link

@cornedor cornedor commented Oct 25, 2022

nextGlobalCssLoader.issuer is undefined with appDir enabled, these changes will filter these out.

I've not tested this very well.

@cornedor
Copy link
Author

All tests run successfully locally, even with next upgraded and appDir enabled in the npm-basic tests. I could add an extra test case.

@mm-webx
Copy link

mm-webx commented Oct 25, 2022

Good job

@martpie
Copy link
Owner

martpie commented Oct 26, 2022

Nice thank you!

@martpie
Copy link
Owner

martpie commented Oct 26, 2022

I need to add a test to check appDir too now, so many usecases combinations 😱

or: nextGlobalCssLoader.issuer ? [matcher, nextGlobalCssLoader.issuer] : [matcher],
};
nextGlobalCssLoader.include = {
or: nextGlobalCssLoader.include ? [...modulesPaths, nextGlobalCssLoader.include] : modulesPaths,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So what does it mean if you need to import global CSS from an imported transpiled module? Does it just not work? Or does it work natively?

@martpie martpie merged commit 33bab49 into martpie:master Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants