Closed dmt0 closed 8 months ago
@dmt0 what's your webpack version?
5.89.0
Can you check which version of strip-ansi you have in your package.json or package-lock.json?
Perhaps your project is using the version 7, which isn't compatible with require
imports this library uses.
If that's the case, we can avoid this dependency by manually embedding in the code the ansi-regex:
https://github.com/chalk/strip-ansi/blob/main/index.js
https://github.com/chalk/ansi-regex/blob/main/index.js
Contributions are welcome!
Yeah, that's correct. I did an update and one of my other dependencies installed version 7. I had to roll back the updates and it's all good.
Good to know the issue is resolved for you! I will leave this open so we can avoid this dependency in the future.
Well, it's not really resolved, since I can't update certain packages. Also more dependencies will switch to strip-ansi v7 over time, and you'll probably have more people come to chime in here.
I'm on 3.0. Error log: