Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

TypeError: Cannot read property 'split' of undefined #28

Open
ghost opened this issue Nov 16, 2017 · 3 comments
Open

TypeError: Cannot read property 'split' of undefined #28

ghost opened this issue Nov 16, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Nov 16, 2017

The application throws an error when I run
ngr build dev --serve --watch

Here is the stack for it -
`npm verb If you need help, you may report this error at:
npm verb https://github.com/npm/npm/issues
npm WARN codelyzer@4.0.1 requires a peer of tslint@^5.0.0 but none was installed.
npm verb
npm verb If you need help, you may report this error at:
npm verb https://github.com/npm/npm/issues
npm verb exit [ 0, true ]
npm info ok
Aditya:angular2-rollup adityashukla$ ngr build dev --serve --watch
[01:02:17] LOG angular-rollup 1.0.0-rc.1
/usr/local/lib/node_modules/angular-rollup/cli.js:169
if (program.build === 'dev' && program.jit === undefined && parseInt(projectPackage.dependencies['@angular/core'].split('.')[0]) < 5) {
^

TypeError: Cannot read property 'split' of undefined
at Timeout.init [as _onTimeout] (/usr/local/lib/node_modules/angular-rollup/cli.js:169:122)
at ontimeout (timers.js:386:11)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)
`

@steveblue
Copy link

steveblue commented Nov 16, 2017

@AdiShuk you are using angular-rollup which is great, but you should file the bug in that repo. This is not an issue with closure or the closure-demo, but that repository. File an issue or login to the gitter channel and I will help you get started with the repo. This is most likely a support request. https://github.com/steveblue/angular2-rollup/issues

@ghost
Copy link
Author

ghost commented Nov 16, 2017

Thanks. Will follow up over there if I am not able to resolve the issue on my own. Apologies.

@steveblue
Copy link

@adisuk Im on gitter all day today if you need support https://gitter.im/angular2-rollup/Lobby

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

No branches or pull requests

1 participant