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

Don't output CSS on Next server builds #852

Merged
merged 1 commit into from Sep 28, 2022
Merged

Conversation

mattcompiles
Copy link
Contributor

The actual issue this solves was because the Next server build was marking the virtual CSS files as external, which means a standard node require is used, obviously failing. While this is strange more of a Next issue, we shouldn't be generating CSS in the server build anyway.

Resolves #569

Copy link
Contributor

@michaeltaranto michaeltaranto left a comment

Choose a reason for hiding this comment

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

Nice find!

@mattcompiles mattcompiles merged commit dfc6405 into master Sep 28, 2022
@mattcompiles mattcompiles deleted the fix-next-parent-imports branch September 28, 2022 23:26
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.

Error: Cannot find module '.../src/theme.css.ts.vanilla.css!=!../../../../../../..'
2 participants