angularjs NPM监视错误:参考错误:_ is not defined at ../node_modules/angular-google-maps/dist/angular-google-maps.js(angular-google-maps.js:1:1)

o4tp2gmn  于 2023-08-02  发布在  Angular
关注(0)|答案(1)|浏览(94)

我正在使用Angular和我已经重新启动我的计算机和在浏览器在控制台部分出现了一个错误:

Unhandled Promise rejection: _ is not defined ; Zone: <root> ; Task: Promise.then ; Value: ReferenceError: _ is not defined at ../node_modules/angular-google-maps/dist/angular-google-maps.js (angular-google-maps.js:1:1)

字符串
我重新安装了node-modules,但还是什么都没有,在 github 上出现了一个问题:https://github.com/sebholstein/angular-google-maps/issues/1932
但还是一无所获。

nszi6y05

nszi6y051#

1.删除节点模块文件夹
1.更新你的npmnodehttps://docs.npmjs.com/downloading-and-installing-node-js-and-npmhttps://nodejs.org/en/download
1.然后做npm cache clean --force
1.运行npm ci
1.重新运行watch
如果仍然不起作用,则在第二步之后执行以下操作:

npm uninstall angular-google-maps

npm install @agm/core --legacy-peer-deps

字符串

相关问题