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
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.2.0: Fri Nov 11 02:06:26 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8112 Binaries: Node: 18.12.1 npm: 8.19.2 Yarn: 1.22.19 pnpm: 7.24.3 Relevant packages: next: 13.1.2 eslint-config-next: 13.1.2 react: 18.2.0 react-dom: 18.2.0
No response
https://stackblitz.com/edit/vercel-next-js-laxqe1?file=next.config.js,components/hello-world/style.module.css,components/hello-world/index.tsx,app/%5Bslug%5D/page.tsx
Create a component with an import to a css modules file.
No matter what the context (in a page.tsx, etc...), load this component with await import()
page.tsx
await import()
The styles aren't injected in the page
Note: if we use a classic import, of course, styles are injected.
The styles should be injected in the page
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue
https://stackblitz.com/edit/vercel-next-js-laxqe1?file=next.config.js,components/hello-world/style.module.css,components/hello-world/index.tsx,app/%5Bslug%5D/page.tsx
To Reproduce
Create a component with an import to a css modules file.
No matter what the context (in a
page.tsx
, etc...), load this component withawait import()
Describe the Bug
The styles aren't injected in the page
Note: if we use a classic import, of course, styles are injected.
Expected Behavior
The styles should be injected in the page
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: