jvandemo / generator-angular2-library

Yeoman generator to create an Angular library
MIT License
752 stars 122 forks source link

#260 not resolved #289

Open ashgibson opened 6 years ago

ashgibson commented 6 years ago

260 doesn't appear to be resolved, I've just done a fresh install of node, yo and this generator and am getting the error when running npm run build.

node -v v9.9.0 npm -v 5.6.0

ashgibson commented 6 years ago

This is the output of npm run build:

[14:01:09] Starting 'build'...
[14:01:09] Starting 'clean'...
[14:01:09] Starting 'clean:dist'...
[14:01:09] Finished 'clean:dist' after 261 μs
[14:01:09] Starting 'clean:tmp'...
[14:01:09] Finished 'clean:tmp' after 2.21 ms
[14:01:09] Starting 'clean:build'...
[14:01:09] Finished 'clean:build' after 3.61 ms
[14:01:09] Finished 'clean' after 8.82 ms
[14:01:09] Starting 'compile'...
[14:01:09] Starting 'clean:dist'...
[14:01:09] Finished 'clean:dist' after 89 μs
[14:01:09] Starting 'copy:source'...
[14:01:09] Finished 'compile' after 12 ms
[14:01:09] Finished 'build' after 22 ms
[14:01:09] Finished 'copy:source' after 37 ms
[14:01:09] Starting 'inline-resources'...
[14:01:09] Finished 'inline-resources' after 7.33 ms
[14:01:09] Starting 'ngc'...
[14:01:10] Finished 'ngc' after 1.77 s
[14:01:10] Starting 'rollup:fesm'...

events.js:165
      throw er; // Unhandled 'error' event
      ^
Error: You must specify options.format, which can be one of 'amd', 'cjs', 'es', 'iife' or 'umd'