Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

parcel failed with css-loader.js: Invalid Version: undefined error

Have a small project. One html + css +js. I wanted to add parcel to it. Install it ( I don't have any more packages besides parcel). in the package.json I did:

 "scripts": {
    "start": "parcel index.html"
  },

When I run npm start gives and error:

C:\Users\ricar\OneDrive\Documentos\Web Developer\Projects\Blog Posts\DOM\node_modules\parcel-bundler\src\builtins\css-loader.js: Invalid Version: undefined

There was any update that I am not aware and I do need something? Thank you

like image 230
Ricardo Moreira Avatar asked Oct 15 '25 17:10

Ricardo Moreira


1 Answers

There's an issue with the latest version and you need to revert to version 1.12.3.

I used the following to fix it:

npm uninstall parcel-bundler
npm i --save-dev [email protected]
like image 127
Ron Avatar answered Oct 19 '25 13:10

Ron



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!