我试着在终端中运行这个命令:
npm i moment @angular/material-moment-adapter.
我有错误:
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: xxxxxxxx-xx@0.0.0 np
我有一个共享组件库项目,它已经有几年的历史了(只是说它已经正常工作了一段时间)。我想用角度材料组件替换一些自定义组件。但是,当我将NgMat添加到库项目中时,当我试图在单独的项目中使用它时,我得到一个错误。
ERROR in The target entry-point "my library project" has missing dependencies:
- @angular/material/form-field
- @angular/material/datepicker
项目package.json有:
...
"peerDependencies&
我试图运行一个从下载的项目。不幸的是,在npm install期间显示了以下警告。我尝试基于此更改版本。然而,我有一个问题,因为一些包需要多个版本的其他包。考虑这两行:
npm WARN @angular/cdk@2.0.0-beta.10 requires a peer of @angular/core@^4.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/forms@4.3.6 requires a peer of @angular/core@4.3.6 b
跟随
并使用cli
stagehand web-angular
pub get
webdev serve
输出:
[INFO] Setting up file watchers completed, took 25ms
[INFO] Waiting for all file watchers to be ready completed, took 201ms
[INFO] Building new asset graph completed, took 1.2s
[INFO] Checking for unexpected pre-existing outputs. completed, to
我试图在我的应用程序中使用@转角/材料,它正在成功编译,但是我得到了以下错误:
webpack: Compiled successfully.
ERROR in node_modules/@angular/material/button-toggle/typings/button-toggle.d.ts(136,20): error TS2315: Type 'ElementRef' is not generic.
node_modules/@angular/material/button-toggle/typings/button-toggle.d.ts(154,104):
我正在尝试实现(angular material UI)和星云组件,但当相同的组件/模块具有星云导入时无法工作。如果我删除了星云模块的导入,则mat-select works。
使用星云4.1.1版和angular material 8.2.3版
这是我的stackblitz变通方法,您可以清楚地看到select下拉菜单不起作用。