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

Can't resolve '%23clip' in '...\node_modules\mapbox-gl\dist' #12164

Closed
Yura13 opened this issue Aug 12, 2022 · 9 comments
Closed

Can't resolve '%23clip' in '...\node_modules\mapbox-gl\dist' #12164

Yura13 opened this issue Aug 12, 2022 · 9 comments

Comments

@Yura13
Copy link

Yura13 commented Aug 12, 2022

After updating angular from 13 to 14 I got failed build with the next error:
./node_modules/mapbox-gl/dist/mapbox-gl.css - Error: Module Error (from ./node_modules/postcss-loader/dist/cjs.js):
...\node_modules\mapbox-gl\dist\mapbox-gl.css:1:21755: Can't resolve '%23clip' in '...\node_modules\mapbox-gl\dist'

mapbox-gl-js version: 2.9.2

@mikefresh
Copy link

Same!

@alexsukhodolsky
Copy link

Referencing the node_modules/mapbox-gl/src/css/mapbox-gl.css stylesheet instead of the minified one found in the dist folder fixed the issue for me. It's not a great solution and the mapbox team should probably fix the broken stylesheet found in the dist folder.

@marfrede
Copy link

marfrede commented Aug 15, 2022

Same! x2

@hound-realscore
Copy link

Yep, me too. :-(

@mourner
Copy link
Member

mourner commented Aug 15, 2022

The CSS file itself is perfectly fine (and even passes the CSS Validator). This appears to be an Angular CLI bug which has already been fixed on their side in angular/angular-cli#23691, and the fix will be included in the next release (v14.2).

@mourner mourner closed this as completed Aug 15, 2022
@Pawelele
Copy link

Pawelele commented Aug 17, 2022

It looks like this was broken i Angular 14.1.2. I just locked all angular packages in angular.json to 14.1.1. Remember to remove ^ or ~ before version number, remove package-lock.json and reinstall node-modules. Now everything is working fine.

@snocorp
Copy link

snocorp commented Aug 21, 2022

This wasn't fixed by angular/angular-cli#23691 as that fix seems to be included in 14.1.3 and still happens. I have raised angular/angular-cli#23773 to fix the specific issue related to the mapbox CSS.

@mourner
Copy link
Member

mourner commented Aug 23, 2022

Thanks for the clarification @snocorp! This appears to be fixed by angular/angular-cli#23774 now.

@coracuity
Copy link

This is still affecting me using a create-react-app with webpack. I'm really not sure what can be done about it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants