. Advertisement .
..3..
. Advertisement .
..4..
The error
Critical dependency: the request of a dependency is an expression
occurred when I import request in a barebone webpack project. I’ve tried to fix it for some days but have not resolved it yet. Can someone suggest a relevant solution to fix the critical dependency: the request of a dependency is an expression issue? Much appreciate your support.
The cause:
This error may be occur due to while you update library. ajv-5.0.1-beta.3, there is a fix which mutes the warnings, but it is not emitted. If you want to use it, you need to wait for it to be emitted and come to har-validatorrelease to request the next updates.
Solution:
npm install [email protected] --save
could solve your problem.ajv
authors tell that the issue shall be fixed in the latestrequest
version within a few weeks.This should be replaced
This-