Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

前端 未结 6 1001
迷失自我
迷失自我 2020-12-24 10:42

Has anyone faced below warning in \"ng serve\"?

WARNING in ./node_modules/@angular/compiler/src/util.js 10:24-31 Critical dependency: require functi

6条回答
  •  情深已故
    2020-12-24 10:56

    I had this error (shown in the title) and several others because I tried to implement a 3rd party library.

    So in short, if you get these errors try looking at your 3rd party libraries. In my case it was a barcode scanning library from Scanbot.io.

提交回复
热议问题