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

Turbopack: Can't resolve url in pre-compiled CSS #63102

Closed
kevinfiol opened this issue Mar 10, 2024 · 1 comment · Fixed by vercel/turbo#7730
Closed

Turbopack: Can't resolve url in pre-compiled CSS #63102

kevinfiol opened this issue Mar 10, 2024 · 1 comment · Fixed by vercel/turbo#7730
Assignees
Labels
bug Issue was opened via the bug report template. linear: turbopack Confirmed issue that is tracked by the Turbopack team. locked Turbopack Related to Turbopack with Next.js.

Comments

@kevinfiol
Copy link

kevinfiol commented Mar 10, 2024

Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/uswds-css-turbopack-v9r3xx?file=%2Fapp%2Fglobals.css

To Reproduce

  1. Bootstrap new Next.js app npx create-next-app@latest with App Router
  2. Add @uswds/uswds: npm install @uswds/uswds
  3. Configure the dev script to use Turbopack: next dev --turbo
  4. Import the uswds css:
/* app/globals.css */
@import '@uswds/uswds/css/uswds.css';
  1. Run npm run dev.
  2. See this error:

image

Current vs. Expected behavior

Bug: Can't use pre-compiled CSS library with Turbopack dev mode

Expected: CSS to compile normally

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Enterprise LTSC 2021
Binaries:
  Node: 20.11.1
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.1.3
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.4.2
Next.js Config:
  output: N/A

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

Turbopack (--turbo)

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

next dev (local)

Additional context

No response

PACK-2717

@kevinfiol kevinfiol added the bug Issue was opened via the bug report template. label Mar 10, 2024
@github-actions github-actions bot added the Turbopack Related to Turbopack with Next.js. label Mar 10, 2024
@ForsakenHarmony ForsakenHarmony added the linear: turbopack Confirmed issue that is tracked by the Turbopack team. label Mar 12, 2024
@kdy1 kdy1 self-assigned this Mar 13, 2024
sokra pushed a commit to vercel/turbo that referenced this issue Mar 14, 2024
### Description

 - Closes vercel/next.js#63102
 - Closes PACK-2717


### Testing Instructions

I added a test.
Copy link
Contributor

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 locked as resolved and limited conversation to collaborators Mar 28, 2024
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. linear: turbopack Confirmed issue that is tracked by the Turbopack team. locked Turbopack Related to Turbopack with Next.js.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants