postcss-color-hex-alpha icon indicating copy to clipboard operation
postcss-color-hex-alpha copied to clipboard

.mjs format is causing issues with .js files

Open rentalhost opened this issue 4 years ago • 0 comments

I am having the following issue:

Plugin Error: Cannot find module 'C:\Users\<user>\AppData\Roaming\npm\node_modules\postcss-color-hex-alpha\node_modules\postcss-values-parser\lib\nodes\Punctuation' imported from C:\Users\<user>\AppData\Roaming\npm\node_modules\postcss-color-hex-alpha\dist\index.mjs

Generally it is caused because you are using .mjs file format, so when importing Punctuation (and all similars) is required to defines it entiry like Punctuaction.js.

It affects 8.0, but works fine at 7.0.

rentalhost avatar Dec 13 '21 16:12 rentalhost