Closed vertic4l closed 2 years ago
Can you once try removing node_modules
and re-installing? rm -rf node_modules && yarn install
?
@harish-sethuraman i already tried this but nothing changed.
You have outdated version of Ajv, they have bug with deps, we can't fix it here
npm install --save-dev ajv
fixes it. thanks guys
FWIW, it seems npm up ajv
will update the sub-dependency in your package-lock.json, even without explicitly installing ajv
as a dependency.
Bug report
Actual Behavior
After upgrading from version 0.11.2 (ya i'm late) to 2.6.0 of mini-css-extract-plugin we notice build issues:
TypeError: Ajv is not a constructor
at Object.<anonymous> (/Sites/frontend-portal/src/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/validate.js:66:13)
Expected Behavior
Well, you know what is expected. I've looked into the source of validate.js and seems to be okay, but the error exists.
How Do We Reproduce?
I'm not sure, we have the latest versions of webpack, typescript and mini-css-extract-plugin and it fails to build. So maybe have the same?
Please paste the results of
npx webpack-cli info
here, and mention other relevant information