next-with-less
next-with-less copied to clipboard
Failed to resolve node_module paths in url(...) statements with next@12
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
@duyphaphach I'm running into a similar issue with a referenced image from leaflet in my code.
Did you ever resolve that?