...
ERROR in ./mb2.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./mb2.scss)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
TypeError: Cannot read properties of undefined (reading 'indexOf')
at /Users/ctm/poker/rust/poker/front-ends/web/node_modules/sass/sass.dart.js:116832:12
...
Turns out, I had upgraded to node 21 and the build broke.
Although it doesn't appear to be Dart's fault, per-se, this hot-fix should solve the problem once it's on stable. In the meantime, I've reverted to node 20 using:
IOW, I've created this GitHub issue after I fixed the problem. I just wanted to write down what I did, because I don't often have to revert to a previous version of something from brew.
Make it so
yarn dev
andyarn build
work again.yarn dev
andyarn build
were complaining:Turns out, I had upgraded to node 21 and the build broke.
Although it doesn't appear to be Dart's fault, per-se, this hot-fix should solve the problem once it's on stable. In the meantime, I've reverted to node 20 using:
and now everything works again.
IOW, I've created this GitHub issue after I fixed the problem. I just wanted to write down what I did, because I don't often have to revert to a previous version of something from brew.