next-with-less icon indicating copy to clipboard operation
next-with-less copied to clipboard

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

Open duyphaphach opened this issue 2 years ago • 1 comments

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

duyphaphach avatar Apr 12 '22 05:04 duyphaphach

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

Did you ever resolve that?

MartinKei avatar Mar 31 '23 11:03 MartinKei