Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 本地但不在gitlab中的角度项目建筑_Angular_Gitlab - Fatal编程技术网

Angular 本地但不在gitlab中的角度项目建筑

Angular 本地但不在gitlab中的角度项目建筑,angular,gitlab,Angular,Gitlab,我正在尝试自动部署angular应用程序,虽然我可以使用--prod在本地构建该项目,但一旦我尝试在gitlab中构建它,我就会遇到一个问题,即我的一些(但不是全部)组件找不到。我的IDE发现它们都没有问题 我尝试重新排序提交,从一个新的ubuntu容器开始,在导入中从双引号改为单引号,等等 从'@angular/core'导入{NgModule}; 从'@angular/router'导入{RouterModule,Routes}; 从“./asset files/asset files.co

我正在尝试自动部署angular应用程序,虽然我可以使用--prod在本地构建该项目,但一旦我尝试在gitlab中构建它,我就会遇到一个问题,即我的一些(但不是全部)组件找不到。我的IDE发现它们都没有问题

我尝试重新排序提交,从一个新的ubuntu容器开始,在导入中从双引号改为单引号,等等

从'@angular/core'导入{NgModule};
从'@angular/router'导入{RouterModule,Routes};
从“./asset files/asset files.component”导入{AssetFilesComponent};
从“./geomap/geomap.component”导入{GeomapComponent};
从“./assettimeseries/assettimeseries/assettimeseries/assettimeseries viewer.component”导入{assettimeseries iewerComponent};
从“./kpi/kpi.component”导入{KpiComponent};
从“./events/events.component”导入{EventsComponent};
常数路由:路由=[
{路径:'',重定向到:'geomap',路径匹配:'full'},
{路径:'geomap',组件:GeomapComponent},
{路径:“资产文件”,组件:AssetFilesComponent},
{路径:“KPI”,组件:KpiComponent},
{path:'asset timeseries',组件:AssetTimeseriesViewerComponent},
{路径:“事件”,组件:EventsComponent}
];
@NGD模块({
导入:[RouterModule.forRoot(路由)],
导出:[路由模块]
})
导出类AppRoutingModule{}
我从gitlab得到的信息如下:

Hash: 66dd67383385c874df28
Time: 89852ms
chunk {0} runtime.26209474bfa8dc87a77c.js (runtime) 1.41 kB [entry] [rendered]
chunk {1} main.01ecbc0fcff9207e8cde.js (main) 128 bytes [initial] [rendered]
chunk {2} polyfills.a723c36635c3a098c2aa.js (polyfills) 130 bytes [initial] [rendered]
chunk {3} styles.350a9b101128c3dd4672.css (styles) 960 kB [initial] [rendered]
chunk {scripts} scripts.9399614690f9a0599e1e.js (scripts) 2.31 MB [entry] [rendered]

ERROR in app/app.module.ts(36,5): Error during template compile of 'AppModule'
  Could not resolve ./kpi/kpi.component relative to [object Object]..
src/app/app-routing.module.ts(5,48): error TS2307: Cannot find module './asset-timeseries/assettimeseries/asset-timeseries-viewer.component'.
src/app/app-routing.module.ts(6,30): error TS2307: Cannot find module './kpi/kpi.component'.
src/app/app-routing.module.ts(7,33): error TS2307: Cannot find module './events/events.component'.
src/app/app.module.ts(10,29): error TS2307: Cannot find module './chart/chart.module'.
src/app/app.module.ts(11,30): error TS2307: Cannot find module './kpi/kpi.component'.
src/app/app.module.ts(12,33): error TS2307: Cannot find module './events/events.component'.
src/app/app.module.ts(14,44): error TS2307: Cannot find module './asset-timeseries/asset-timeserieschart.module'.
就像我说的,模块肯定在那里,就在angular不抱怨的模块旁边。我正在Windows10机器上本地构建,并试图在ubuntu容器中构建。我不确定这是否会带来不同

谢谢你的帮助

Hash: 66dd67383385c874df28
Time: 89852ms
chunk {0} runtime.26209474bfa8dc87a77c.js (runtime) 1.41 kB [entry] [rendered]
chunk {1} main.01ecbc0fcff9207e8cde.js (main) 128 bytes [initial] [rendered]
chunk {2} polyfills.a723c36635c3a098c2aa.js (polyfills) 130 bytes [initial] [rendered]
chunk {3} styles.350a9b101128c3dd4672.css (styles) 960 kB [initial] [rendered]
chunk {scripts} scripts.9399614690f9a0599e1e.js (scripts) 2.31 MB [entry] [rendered]

ERROR in app/app.module.ts(36,5): Error during template compile of 'AppModule'
  Could not resolve ./kpi/kpi.component relative to [object Object]..
src/app/app-routing.module.ts(5,48): error TS2307: Cannot find module './asset-timeseries/assettimeseries/asset-timeseries-viewer.component'.
src/app/app-routing.module.ts(6,30): error TS2307: Cannot find module './kpi/kpi.component'.
src/app/app-routing.module.ts(7,33): error TS2307: Cannot find module './events/events.component'.
src/app/app.module.ts(10,29): error TS2307: Cannot find module './chart/chart.module'.
src/app/app.module.ts(11,30): error TS2307: Cannot find module './kpi/kpi.component'.
src/app/app.module.ts(12,33): error TS2307: Cannot find module './events/events.component'.
src/app/app.module.ts(14,44): error TS2307: Cannot find module './asset-timeseries/asset-timeserieschart.module'.