美文网首页
angular8踩坑记

angular8踩坑记

作者: 加号_ZSL | 来源:发表于2020-06-15 16:55 被阅读0次

1>SSL certificate problem: unable to get local issuer certificate

1.1 git config --global http.sslVerify false

2>An unhandled exception occurred: Job name "..getProjectMetadata" does not exist.

2.1 npm install -g @angular/cli@8.3.4

2.2 npm i @angular-devkit/build-angular@0.803.24

3> Could not find plugin "proposal-numeric-separator".

3.1 npm install @babel/plugin-proposal-numeric-separator (安装)

3.2 node_modules/@babel/preset-env/lib/available-plugins.js文件 (修改)

3.2.1 var _pluginProposalNumericSeparator = _interopRequireDefault(require("@babel/plugin-proposal-numeric-separator"));

3.2.2 var _default = {

          "proposal-numeric-separator": _pluginProposalNumericSeparator.default,

      }

4> Could not find plugin "proposal-class-properties".

4.1 npm install --save-dev @babel/plugin-proposal-class-properties

"start": "ng serve --proxy-config proxy.conf.json --port 4201",

"build": "ng build --base-href /login/",

5>Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i @types/node`

and then add `node` to the types field in your tsconfig.

解决: 在tsconfig.app.json文件下 compilerOptions => "types": ["node"]

6>An unhandled exception occurred: Job name "..getProjectMetadata" does not exist.

npm i @angular-devkit/build-angular@0.803.24

7> 创建component 报错说有多个module或者在多个module出现

ng generate component hello --module=people-manage.module(文件名)

--module= 指定module可以解决

8>解决不生成spec.ts文件

只需加上 --no-spec即可

相关文章

  • angular8踩坑记

    1>SSL certificate problem: unable to get local issuer cer...

  • Android Material Design 踩坑记(2)

    Android Material Design 踩坑记(1) CoordinatorLayout Behav...

  • Deepin使用踩坑记

    1. 前言 很喜欢Deepin,奈何坑太多,不过不怕,踩过去~ 2. 踩坑记 2.1 Deepin重启后文件管理器...

  • SpringStreaming+Kafka

    摘自 :Spark踩坑记——Spark Streaming+Kafka [TOC] SpringStreaming...

  • 原生App植入React Native 踩坑记

    原生App植入React Native 踩坑记 为什么我踩坑了有一个需求要去可以在当前工程的feature/RN ...

  • [ANR Warning]onMeasure time too

    ConstraintLayout 踩坑记一次封装组合控件时的坑,我才用了集成 ConstraintLayout 来...

  • IdentityServer 部署踩坑记

    IdentityServer 部署踩坑记 Intro 周末终于部署了 IdentityServer 以及 Iden...

  • 踩坑记

    1、android自签名证书Glide加载不出图片 关于https中自签名证书的介绍以及OkHttp中解决自签名证...

  • 踩坑记

    6月初,看到广西龙脊梯田有个疏秧节,很是心动!我十几年前就去过龙脊,当时觉得整片的梯田又美又壮观,壮族风情浓厚,就...

  • 踩坑记

    该篇文章记录踩过的坑 uglifyjs-webpack-plugin压缩代码报punc (()错误网上查资料,说是...

网友评论

      本文标题:angular8踩坑记

      本文链接:https://www.haomeiwen.com/subject/fprhxktx.html