Parcel 1.12.4 causes an error with css-builder.js
tim-reynolds-thegrommet opened this issue · 2 comments
tim-reynolds-thegrommet commented
So I am mucking around making a goof for work and I cloned this again as a starting point. A while back I played with this and it worked fine.
But this time when I ran the server I got an exception launching it around css-builder.js and when I tried loading it I got the error defined in this SO post.
https://stackoverflow.com/questions/66526161/parcel-failed-with-css-loader-js-invalid-version-undefined-error
Per this post I resolved the issue by rolling back to version 1.12.3 of parcel. Just thought you should know.
Thanks for this repo. As someone with too little time and too many ambitions its things like this that make me able to realize my goofs :)
[nodemon] starting `node server/server.js`
Server running at http://localhost:1234
🚨 /Users/anonymous.coward/Downloads/phaser3-multiplayer-game-example-master 2/node_modules/parcel/src/builtins/css-loader.js: Invalid Version: undefined
🚨 /Users/anonymous.coward/Downloads/phaser3-multiplayer-game-example-master 2/node_modules/parcel/src/builtins/css-loader.js: Invalid Version: undefined
at new SemVer (/Users/anonymous.coward/Downloads/phaser3-multiplayer-game-example-master 2/node_modules/@babel/preset-env/node_modules/semver/semver.js:314:11)
at compare (/Users/anonymous.coward/Downloads/phaser3-multiplayer-game-example-master 2/node_modules/@babel/preset-env/node_modules/semver/semver.js:647:10)
at lt (/Users/anonymous.coward/Downloads/phaser3-multiplayer-game-example-master 2/node_modules/@babel/preset-env/node_modules/semver/semver.js:688:10)
at /Users/anonymous.coward/Downloads/phaser3-multiplayer-game-example-master 2/node_modules/@babel/preset-env/lib/index.js:280:22
at Object.default (/Users/anonymous.coward/Downloads/phaser3-multiplayer-game-example-master 2/node_modules/@babel/helper-plugin-utils/lib/index.js:22:12)
at getEnvPlugins (/Users/anonymous.coward/Downloads/phaser3-multiplayer-game-example-master 2/node_modules/parcel/src/transforms/babel/env.js:62:34)
at getEnvConfig (/Users/anonymous.coward/Downloads/phaser3-multiplayer-game-example-master 2/node_modules/parcel/src/transforms/babel/env.js:12:25)
at async getBabelConfig (/Users/anonymous.coward/Downloads/phaser3-multiplayer-game-example-master 2/node_modules/parcel/src/transforms/babel/config.js:32:19)
at async babelTransform (/Users/anonymous.coward/Downloads/phaser3-multiplayer-game-example-master 2/node_modules/parcel/src/transforms/babel/transform.js:6:16)
at async JSAsset.pretransform (/Users/anonymous.coward/Downloads/phaser3-multiplayer-game-example-master 2/node_modules/parcel/src/assets/JSAsset.js:83:5)
ujenjt commented
same for me
yandeu commented
It has been fixed 👍