我正在使用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
但还是一无所获。
1条答案
按热度按时间nszi6y051#
1.删除节点模块文件夹
1.更新你的npm和node:https://docs.npmjs.com/downloading-and-installing-node-js-and-npm和https://nodejs.org/en/download
1.然后做
npm cache clean --force
1.运行
npm ci
1.重新运行
watch
如果仍然不起作用,则在第二步之后执行以下操作:
字符串