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

app dir in turbo mode can not import styles from node_modules #56219

Closed
1 task done
AnnatarHe opened this issue Sep 29, 2023 · 4 comments
Closed
1 task done

app dir in turbo mode can not import styles from node_modules #56219

AnnatarHe opened this issue Sep 29, 2023 · 4 comments
Labels
bug Issue was opened via the bug report template. locked Turbopack Related to Turbopack with Next.js.

Comments

@AnnatarHe
Copy link

Link to the code that reproduces this issue

https://github.com/mantinedev/next-app-template/tree/0a09fb7218de3ac866b0e782dfee7b107be1c88a

To Reproduce

pnpm i
npm run dev # open http://localhost:3000, looks good.
npm run dev -- --turbo # open http://localhost:3000, no styles at all.

Current vs. Expected behavior

current:
cannot import styles from node_modules

expected:
should be able to import styles from node_modules.

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 23.0.0: Fri Sep 15 14:41:43 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T6000
Binaries:
  Node: 20.5.0
  npm: 9.8.0
  Yarn: 1.22.19
  pnpm: 8.6.11
Relevant Packages:
  next: 13.5.4-canary.7
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.2.2
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

App Router, Turbopack (--turbo)

Additional context

the key should be here: https://github.com/mantinedev/next-app-template/blob/0a09fb7218de3ac866b0e782dfee7b107be1c88a/app/layout.tsx#L1C9-L1C9

@AnnatarHe AnnatarHe added the bug Issue was opened via the bug report template. label Sep 29, 2023
@github-actions github-actions bot added the Turbopack Related to Turbopack with Next.js. label Sep 29, 2023
@fivaz

This comment was marked as spam.

@kwonoj
Copy link
Contributor

kwonoj commented Oct 10, 2023

#56679

@kwonoj kwonoj closed this as completed Oct 10, 2023
@AnnatarHe
Copy link
Author

I tried on the 13.5.5 and it has been fixed. thanks.

Copy link
Contributor

github-actions bot commented Nov 1, 2023

This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot added the locked label Nov 1, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template. locked Turbopack Related to Turbopack with Next.js.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants