如何求解ng构建库角?

发布于 2025-02-09 09:57:04 字数 392 浏览 0 评论 0原文

aftyer命令ng构建lib我收到了此错误消息:

Error: Cannot find module 'tsickle/src/tsickle'

我尝试安装npm i tsickle无效。

"@angular/core": "^6.0.0"

TS是:

  "typescript": "~2.7.2"

node_modules \ ng-packagr \ lib \ ngc \ create-emit-callback.js模块需要tsicckle

Aftyer command ng build lib I got this error message:

Error: Cannot find module 'tsickle/src/tsickle'

I have tried to install npm i tsickle no effect.

"@angular/core": "^6.0.0"

Ts is:

  "typescript": "~2.7.2"

This node_modules\ng-packagr\lib\ngc\create-emit-callback.js module required the tsicckle

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

水波映月 2025-02-16 09:57:05

您应该将tsickle作为dev依赖项安装

npm i --save-dev tsickle

you should install tsickle as dev dependency

npm i --save-dev tsickle
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文