Skip to content

Cannot build project using npm run build #6

@idanb11

Description

@idanb11

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions