Home > Back-end >  WebStorm doesn't recognize webpack css import from npm package export
WebStorm doesn't recognize webpack css import from npm package export

Time:05-25

I updated some webpack stuff and now they expect imports using the npm packages exports.

New syntax is:

enter image description here

Old syntax:

enter image description here

It is expecting you to use imports from the swiper node modules package.json export field here:

enter image description here

Question:

How to get WebStorm/PhpStorm to recognize this?

CodePudding user response:

Package exports are not yet supported in CSS/SASS, please vote for WEB-55017 to be notified on any progress with this feature

  • Related