FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

ng get causes InvalidJsonPath error · Issue #5886 · angular/angular-cli · GitHub

ng get causes InvalidJsonPath error #5886

Description

Versions.

ps>ng --version
_ _ ____ _ ___
/ \ _ __ __ _ _ | | __ _ _ __ / | | | |
/ △ \ | '
\ / _ | | | | |/ _ | '
| | | | | | |
/ ___ | | | | (
| | || | | (| | | | || | | |
// __| ||_, |_,||_,|| _|||
|___/
@angular/cli: 1.0.0
node: 7.7.2
os: win32 x64
@angular/common: 4.0.1
@angular/compiler: 4.0.1
@angular/core: 4.0.1
@angular/forms: 4.0.1
@angular/http: 4.0.1
@angular/platform-browser: 4.0.1
@angular/platform-browser-dynamic: 4.0.1
@angular/router: 4.0.1
@angular/cli: 1.0.0
@angular/compiler-cli: 4.0.1

Repro steps.

  1. Navigate to an existing directory that was created via ng new, such as ng new angular-hello.
  2. Open a prompt at the location of the project directory. Example c:\projects\angular-hello
  3. ng get

The log given by the failure.

ps>ng get --verbose
The option '--verbose' is not registered with the get command. Run ng get --help for a list of supported options.
InvalidJsonPath
Error: InvalidJsonPath
at _parseJsonPath (C:\projects\angular-hello\node_modules@ngtools\json-schema\src\schema-class-factory.js:29:19)
at _getSchemaNodeForPath (C:\projects\angular-hello\node_modules@ngtools\json-schema\src\schema-class-factory.js:41
:21)
at GeneratedSchemaClass.$$get (C:\projects\angular-hello\node_modules@ngtools\json-schema\src\schema-class-factory.
js:84:22)
at CliConfig.get (C:\projects\angular-hello\node_modules@angular\cli\models\config\config.js:31:29)
at resolve (C:\projects\angular-hello\node_modules@angular\cli\commands\get.js:25:34)
at Class.run (C:\projects\angular-hello\node_modules@angular\cli\commands\get.js:19:16)
at Class. (C:\projects\angular-hello\node_modules@angular\cli\ember-cli\lib\models\command.js:134:17)
at process._tickCallback (internal/process/next_tick.js:109:7)

Desired functionality.

Eliminate the InvalidJsonPath error

Mention any other details that might be useful.

  1. ng build of the project works.
  2. ng serve of the project works.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL