Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular compiler option "flatModuleIndex" requires one and only one .ts file in the "files" field #249

Open
dgroh opened this issue Dec 14, 2017 · 1 comment

Comments

@dgroh
Copy link

dgroh commented Dec 14, 2017

since angular-cli 1.6.0 I get the following error:

Thing is I don't really know if it's an angular-cli problem. it was working a few days ago without any change. Out build server started to fail.

The error occurs in the ngc task:

2017-12-14T15:07:43.7558989Z [16:07:43] 'ngc' errored after 466 ms
2017-12-14T15:07:43.7558989Z [16:07:43] Error: ngc compilation failed: : Angular compiler option "flatModuleIndex" requires one and only one .ts file in the "files" field.
2017-12-14T15:07:43.7558989Z
2017-12-14T15:07:43.7558989Z at ngc (D:\Agents\Build1_work\23\s\my-dnn\gulpfile.js:54:13)
2017-12-14T15:07:43.7558989Z at reportErrorsAndExit (D:\Agents\Build1_work\23\s\my-dnn\node_modules@angular\compiler-cli\src\main.js:126:9)
2017-12-14T15:07:43.7558989Z at main (D:\Agents\Build1_work\23\s\my-dnn\node_modules@angular\compiler-cli\src\main.js:30:12)
2017-12-14T15:07:43.7558989Z at Gulp. (D:\Agents\Build1_work\23\s\my-dnn\gulpfile.js:52:10)
2017-12-14T15:07:43.7558989Z at module.exports (D:\Agents\Build1_work\23\s\my-dnn\node_modules\orchestrator\lib\runTask.js:34:7)
2017-12-14T15:07:43.7558989Z at Gulp.Orchestrator._runTask (D:\Agents\Build1_work\23\s\my-dnn\node_modules\orchestrator\index.js:273:3)
2017-12-14T15:07:43.7558989Z at Gulp.Orchestrator._runStep (D:\Agents\Build1_work\23\s\my-dnn\node_modules\orchestrator\index.js:214:10)
2017-12-14T15:07:43.7558989Z at Gulp.Orchestrator.start (D:\Agents\Build1_work\23\s\my-dnn\node_modules\orchestrator\index.js:134:8)
2017-12-14T15:07:43.7558989Z at runNextSet (D:\Agents\Build1_work\23\s\my-dnn\node_modules\run-sequence\index.js:123:15)
2017-12-14T15:07:43.7558989Z at Gulp.onTaskEnd (D:\Agents\Build1_work\23\s\my-dnn\node_modules\run-sequence\index.js:101:4)
2017-12-14T15:07:43.7558989Z ERROR: ngc compilation failed: : Angular compiler option "flatModuleIndex" requires one and only one .ts file in the "files" field.
2017-12-14T15:07:43.7558989Z
2017-12-14T15:07:43.7871492Z ##[error]Gulp failed with error: C:\Program Files\nodejs\node.exe failed with return code: 1
2017-12-14T15:07:43.7871492Z ##[section]Finishing: [my-dnn] generate dist

@caroso1222
Copy link
Contributor

can you please post here some repro steps? also, how does your src/tsconfig.es5.json look like?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants