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

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

Description

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)
`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions