Closed liam-k closed 2 years ago
That's weird. I can't reproduce this error. There came up an unseen warning/ error (which doesn't hinder the app to run), but there was nothing qrcode related.
Module not found: Error: Can't resolve '/home/grilborzer/Code/screenario-bug-test#26/screenario-react/node_modules/webpack-dev-server/client/index.js?protocol=ws%3A&hostname=0.0.0.0&port=3000&pathname=%2Fws&logging=none&reconnect=10' in '/home/grilborzer/Code/screenario-bug-test#26/screenario-react'
ERROR in Module not found: Error: Can't resolve '/home/grilborzer/Code/screenario-bug-test#26/screenario-react/node_modules/webpack-dev-server/client/index.js?protocol=ws%3A&hostname=0.0.0.0&port=3000&pathname=%2Fws&logging=none&reconnect=10' in '/home/grilborzer/Code/screenario-bug-test#26/screenario-react'
Weird. Not sure if this is related, but whenever I pull & npm i I also get a warning about the lockfile being generated with an old version of npm. Maybe it works for you because you’re out of date?
YO! Inspired by the mui incompatibility in #34, I took a closer look at this complaining package and it’s this one https://www.npmjs.com/package/qrcode-react
"qrcode - react". The package is 5 years old and thus incompatible with newer versions of react, of course. Did you actually mean to install "qrcode . react"?
AND WHY THE HELL DID YOU GET NO ERROR MESSAGES? Whaaaaaaaaaaat
Well I installed the previous package (-), because it's simple to use and works :shrug: (on my machine + the server) :smile: We can use the other one though if you want (LOL, need) to. Coincidentally I had installed the newer qrcode package as I tried to fix the sizing issue.
So yeah, who ever gets the qrcode issue shall install the new one :+1:
Fair point that it also works on the server, maybe my installation is set to a "stricter" mode somehow? Probably the --legacy-deps flag thingy. But still, it’s clearly a severely outdated package, we should never use any of those.
I'm not sure if there's a downside since it's compilated JS at the end of the process, but yeah like I said I don't mind if we change the package. Let's go for it!
And since it's my task I'll switch it and close this issue.
Just did a fresh clone of the main branch and npm i gives this error:
Removing qrcode-react from package.json solves the problem. Can you reproduce this @s-gbz?