xzegga / angular-knob

ng-knob for Angular and TypeScript with D3v4
MIT License
14 stars 12 forks source link

Cannot build project using npm run build #6

Open idanb11 opened 6 years ago

idanb11 commented 6 years ago

I'm getting the following error message

$ npm run build

> angular2-knob@1.1.11 build ..\node_modules\angular2-knob
> npm run cleanup && ngc && npm run bundling && npm run minify

> angular2-knob@1.1.11 cleanup ..\node_modules\angular2-knob
> rimraf dist/bundles dist/src dist/index.d.ts dist/index.js dist/index.js.map dist/LICENCE dist/README.md

> angular2-knob@1.1.11 bundling ..\node_modules\angular2-knob
> rollup -c

(!) Some options have been renamed
https://gist.github.com/Rich-Harris/d472c50732dab03efeb37472b08a3f32
options.entry is now options.input
options.moduleName is now options.name
options.dest is now options.output.file
options.format is now options.output.format

dist/index.js → dist/bundles/angular2-knob.umd.js...
[!] Error: Could not resolve './src/index' from dist\index.js
Error: Could not resolve './src/index' from dist\index.js
    at error (..\node_modules\angular2-knob\node_modules\rollup\dist\rollup.js:185:14)
    at then.resolvedId (..\node_modules\angular2-knob\node_modules\rollup\dist\rollup.js:9804:8)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
    at Function.Module.runMain (module.js:678:11)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! angular2-knob@1.1.11 bundling: `rollup -c`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular2-knob@1.1.11 bundling script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     ..\npm-cache\_logs\2017-11-29T15_12_16_196Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! angular2-knob@1.1.11 build: `npm run cleanup && ngc && npm run bundling && npm run minify`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular2-knob@1.1.11 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.