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

Failed to resolve node_module paths in url(...) statements with next@12 #25

Open
duyphaphach opened this issue Apr 12, 2022 · 1 comment

Comments

@duyphaphach
Copy link

Hi 🙂, I want to report an issue when upgrading to next@12

Versions

  • Next.js: v12.0.7
  • less-loader: v10.2.0
  • next-with-less: v2.0.5

Issue

node_modules paths in url(...) like ~bootstrap/fonts/glyphicons-halflings-regular.eot is resolved into relative path: ./bootstrap/fonts/glyphicons-halflings-regular.eot

Happened when bumping to next@12 and [email protected]

It worked fine in next@11 and [email protected]

Reproduction

Working demo with next@11
Breaking demo with next@12

@MartinKei
Copy link

@duyphaphach
I'm running into a similar issue with a referenced image from leaflet in my code.

Did you ever resolve that?

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

No branches or pull requests

2 participants