使用Kendo UI的Angular Project在Linux Server上构建
我正在构建一个 Angular 10 应用程序,在我的本地 Windows 开发实例上一切正常。但是,当我在 Linux 服务器上运行构建管道时,ng 构建过程失败并显示以下错误输出:
`Property 'readonly' is Missing in type '{ mode: "row";多个:假;拖动:假;启用:真; }',但在“SelectableSettings”类型中是必需的。
55 这个.设置= { ~~~~~~~~~~~~~
node_modules/@progress/kendo-angular-treelist/dist/es2015/selection/selectable-settings.d.ts:47:5 47 只读:布尔值; ~~~~~~~~`
在两台机器上我都有相同的 npm、angluar cli、node 版本。我尝试在 Linux 计算机上执行 ng build 命令之前清理 node_modules 和 npm 缓存,但没有生成 dist 文件夹。
我将剑道树列表更新到最新版本,但它也不起作用。
似乎是 es2015 软件包版本的问题,但我不知道如何解决。
我尝试更新 npm、node 和 ng,并将其设置为服务器和开发计算机上的相同版本。我尝试清理 npm 缓存,尝试删除 node_modules 文件夹。
I'm building an angular 10 app, everything works fine on my local windows dev instance. But when I run the build pipeline on a linux server the ng build process fails with this error output:
`Property 'readonly' is missing in type '{ mode: "row"; multiple: false; drag: false; enabled: true; }' but required in type 'SelectableSettings'.
55 this.settings = {
~~~~~~~~~~~~~
node_modules/@progress/kendo-angular-treelist/dist/es2015/selection/selectable-settings.d.ts:47:5
47 readonly: boolean;
~~~~~~~~`
On both machines I have the same npm, angluar cli, node versions. I try to clean the node_modules and the npm cache before the ng build command on the linux machine but the dist folder it's not generated.
I update the kendo tree list to the last version but it also doesn't work.
Seems like an issue with es2015 package version but I don't know how solve it.
I try to update npm, node and ng and set it to the same version on server and dev machine. I try to clean npm cache, I try to remove node_modules folder.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论