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

[v13] css modules not carried with dynamic imports #44994

Open
1 task done
y-nk opened this issue Jan 18, 2023 · 0 comments
Open
1 task done

[v13] css modules not carried with dynamic imports #44994

y-nk opened this issue Jan 18, 2023 · 0 comments
Labels
template: bug A user has filled out the bug report template. Issue needs triaging

Comments

@y-nk
Copy link

y-nk commented Jan 18, 2023

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

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

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

  1. Create a component with an import to a css modules file.

  2. No matter what the context (in a page.tsx, etc...), load this component with await 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

@y-nk y-nk added the template: bug A user has filled out the bug report template. Issue needs triaging label Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
template: bug A user has filled out the bug report template. Issue needs triaging
Projects
None yet
Development

No branches or pull requests

1 participant