1. npm install "@types/jquery" --save-dev

2. jquery的$不识别


3. index.html页面不识别引用过来的外部.css 和 .js 文件

解决方案:把对应的文件放到公网上,比如:<link href="http://www.xxxx.cn/prebuilt-themes/indigo-pink.css" type="text/css" rel="stylesheet">
4. WARN node unsupported "node@v10.15.3" is incompatible with karma-cli@~1.0.1, expected node@0.10 ...
遇到如题报错信息,允许如下命令解决:
yarn install --ignore-engines
[fsevents@^1.0.0] optional install error: Package require os(darwin) not compatible with your platform(win32)
国内许多回答说跟sass loader有关,运行一下命令:
cnpm rebuild node-sass
然后: cnpm install
以上cnpm可以写成npm,cnpm只是使用了淘宝镜像,这样安装会快一些
cnpm rebuild node-sass
cnpm install
ERROR in ./src/app/core/admin-layout/admin-layout.component.ngfactory.js
Module not found: Error: Can't resolve '../../../../node_modules/@ngx-loading-bar/router/node_modules/@ngx-loading-bar/core/core.ngfactory'
本文详细介绍了在前端开发过程中遇到的几个常见问题及其解决方案,包括npm安装TypeScript类型定义、jQuery识别问题、HTML页面引入外部文件的问题以及Node.js版本兼容性警告。同时,提供了关于如何处理与Sass loader相关的错误信息。
3478

被折叠的 条评论
为什么被折叠?



