Open Kamilius opened 7 years ago
Update, it's actually a gulp build:watch
which causes an infinite loop.
Tried running it separately, and got following output:
example-lib gulp build:watch
[12:31:07] Using gulpfile ~/proj/example-lib/gulpfile.js
[12:31:07] Starting 'clean:dist'...
[12:31:07] Starting 'clean:tmp'...
[12:31:07] Starting 'clean:build'...
[12:31:07] Starting 'compile'...
[12:31:07] Starting 'watch'...
[12:31:07] Finished 'watch' after 16 ms
[12:31:07] Finished 'compile' after 18 ms
[12:31:07] Finished 'clean:tmp' after 25 ms
[12:31:07] Finished 'clean:build' after 24 ms
[12:31:07] Finished 'clean:dist' after 35 ms
[12:31:07] Starting 'copy:source'...
[12:31:07] Starting 'clean'...
[12:31:07] Finished 'clean' after 1.64 μs
[12:31:07] Starting 'build'...
[12:31:07] Finished 'build' after 1.73 μs
[12:31:07] Starting 'build:watch'...
[12:31:07] Finished 'build:watch' after 1.45 μs
[12:31:07] Finished 'copy:source' after 31 ms
[12:31:07] Starting 'inline-resources'...
[12:31:07] Finished 'inline-resources' after 8.27 ms
[12:31:07] Starting 'ngc'...
[12:31:08] Finished 'ngc' after 1.23 s
[12:31:08] Starting 'rollup:fesm'...
[12:31:08] Finished 'rollup:fesm' after 170 ms
[12:31:08] Starting 'rollup:umd'...
No name was provided for external module '@angular/core' in options.globals – guessing 'core'
No name was provided for external module '@angular/common' in options.globals – guessing 'common'
[12:31:08] Finished 'rollup:umd' after 31 ms
[12:31:08] Starting 'copy:build'...
[12:31:08] Finished 'copy:build' after 13 ms
[12:31:08] Starting 'copy:manifest'...
[12:31:08] Finished 'copy:manifest' after 2.84 ms
[12:31:08] Starting 'copy:readme'...
[12:31:08] Finished 'copy:readme' after 1.71 ms
[12:31:08] Starting 'clean:build'...
[12:31:08] Finished 'clean:build' after 3.32 ms
[12:31:08] Starting 'clean:tmp'...
[12:31:08] Finished 'clean:tmp' after 2.22 ms
Compilation finished succesfully
[12:31:09] Starting 'compile'...
[12:31:09] Starting 'clean:dist'...
[12:31:09] Finished 'compile' after 716 μs
[12:31:09] Starting 'compile'...
[12:31:09] Finished 'compile' after 91 μs
[12:31:09] Starting 'compile'...
[12:31:09] Finished 'compile' after 83 μs
[12:31:09] Starting 'compile'...
[12:31:09] Finished 'compile' after 101 μs
[12:31:09] Starting 'compile'...
[12:31:09] Finished 'compile' after 147 μs
[12:31:09] Finished 'clean:dist' after 6.11 ms
[12:31:09] Starting 'copy:source'...
[12:31:09] Finished 'copy:source' after 13 ms
[12:31:09] Starting 'inline-resources'...
[12:31:09] Finished 'inline-resources' after 1.85 ms
[12:31:09] Starting 'ngc'...
[12:31:10] Finished 'ngc' after 895 ms
[12:31:10] Starting 'rollup:fesm'...
[12:31:10] Starting 'compile'...
[12:31:10] Starting 'clean:dist'...
[12:31:10] Finished 'compile' after 423 μs
[12:31:10] Finished 'clean:dist' after 1.25 ms
[12:31:10] Starting 'copy:source'...
[12:31:10] Finished 'rollup:fesm' after 34 ms
[12:31:10] Starting 'rollup:umd'...
No name was provided for external module '@angular/core' in options.globals – guessing 'core'
No name was provided for external module '@angular/common' in options.globals – guessing 'common'
[12:31:10] Finished 'rollup:umd' after 28 ms
[12:31:10] Starting 'copy:build'...
[12:31:10] Finished 'copy:build' after 12 ms
[12:31:10] Starting 'copy:manifest'...
[12:31:10] Finished 'copy:source' after 70 ms
[12:31:10] Starting 'inline-resources'...
[12:31:10] Finished 'inline-resources' after 3.41 ms
[12:31:10] Starting 'ngc'...
[12:31:11] Finished 'ngc' after 889 ms
[12:31:11] Starting 'rollup:fesm'...
[12:31:11] Finished 'copy:manifest' after 898 ms
[12:31:11] Starting 'copy:readme'...
[12:31:11] Finished 'copy:readme' after 1.6 ms
[12:31:11] Starting 'clean:build'...
[12:31:11] Finished 'clean:build' after 21 ms
[12:31:11] Starting 'clean:tmp'...
[12:31:11] Finished 'rollup:fesm' after 27 ms
[12:31:11] Starting 'rollup:umd'...
events.js:160
throw er; // Unhandled 'error' event
^
Error: Could not resolve entry (/Users/ohutsulyak/proj/example-lib/build/index.js)
at error (/Users/ohutsulyak/proj/example-lib/node_modules/rollup/dist/rollup.js:185:14)
at resolveId.then.id (/Users/ohutsulyak/proj/example-lib/node_modules/rollup/dist/rollup.js:9551:6)
at process._tickCallback (internal/process/next_tick.js:103:7)
Thanks @Kamilius I'll have a look into it
@Kamilius — Thank you for reporting.
@izifortune — Thank you for looking into it 👍
I've spent some times here but i still can't reproduce the problem, plus from the error it seems related to gulp build:watch
rather than the playground itself
Haven't been able to reproduce this either.
@Kamilius — Were you able to fix this yet? Thanks!
Steps to reproduce:
yo angular2-library
.npm run playground
.Browser refreshes indefinately.
Tools: NodeJS: v6.10.0 Angular2-library: v11.4.0 OS: MacOSX
Here is a part of an output: