碰巧,我不得不修改package.json
unfortunatley项目中使用的一个程序包,目前尚不批准任何PR,因此我分叉了仓库并编辑了package.json
至
"dependencies": {
....
"ng2-completer": "2.0.8",
"ng2-smart-table": "https://github.com/Mixeway/ng2-smart-table.git",
....
}
在ng2-smart-table
项目中,我编辑了一个文件(关于过滤嵌套对象的问题)并将其推送到我的仓库中。
当我尝试运行项目时,我会看到ATM:
输入错误 ./node_modules/ng2-smart-table/projects/ng2-smart-table/src/lib/lib/data-source/local/local.data-source.ts 模块构建失败(来自 ./node_modules/@ngtools/webpack/src/index.js):错误: C:\ Users \ gsiew \ IdeaProjects \ MixewayFrontend \ node_modules \ ng2-smart-table \ projects \ ng2-smart-table \ src \ lib \ lib \ data-source \ local \ local.data-source.ts 在TypeScript编译中丢失。请确保它在 您的tsconfig通过“文件”或“包含”属性。丢失的文件 似乎是第三方图书馆的一部分。 TS文件已发布 库通常是包装不良的标志。请打开 库存储库中的问题,以警告其作者并请他们 使用Angular打包格式打包库 (...)。 在AngularCompilerPlugin.getCompiledFile(C:\ Users \ gsiew \ IdeaProjects \ MixewayFrontend \ node_modules @ ngtools \ webpack \ src \ angular_compiler_plugin.js:913:23) 在C:\ Users \ gsiew \ IdeaProjects \ MixewayFrontend \ node_modules @ ngtools \ webpack \ src \ loader.js:41:31 在runMicrotasks() 在processTicksAndRejections(internal / process / task_queues.js:93:5)中出现错误 ./node_modules/ng2-smart-table/projects/ng2-smart-table/src/lib/ng2-smart-table.module.ts 模块构建失败(来自 ./node_modules/@ngtools/webpack/src/index.js):错误: C:\ Users \ gsiew \ IdeaProjects \ MixewayFrontend \ node_modules \ ng2-smart-table \ projects \ ng2-smart-table \ src \ lib \ ng2-smart-table.module.ts 在TypeScript编译中丢失。请确保它在 您的tsconfig通过“文件”或“包含”属性。丢失的文件 似乎是第三方图书馆的一部分。 TS文件已发布 库通常是包装不良的标志。请打开 库存储库中的问题,以警告其作者并请他们 使用Angular打包格式打包库 (...)。 在AngularCompilerPlugin.getCompiledFile(C:\ Users \ gsiew \ IdeaProjects \ MixewayFrontend \ node_modules @ ngtools \ webpack \ src \ angular_compiler_plugin.js:913:23) 在C:\ Users \ gsiew \ IdeaProjects \ MixewayFrontend \ node_modules @ ngtools \ webpack \ src \ loader.js:41:31 在runMicrotasks() 在processTicksAndRejections(internal / process / task_queues.js:93:5)
谁能给我一个提示我做错了什么?