question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ng get causes InvalidJsonPath error

See original GitHub issue

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.<anonymous> (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.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
prestonvanlooncommented, Apr 8, 2017

@sumitarora I can submit a fix for this in a few minutes.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 8, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GET call, Invalid JSON error when Updating to Angular 9
Try these steps: Delete node-modules folder C:\Users\USER\AppData\Roaming\npm\node_modules; Open windows powershell as admin ...
Read more >
Policy error reference | Apigee Edge
See Fault code reference for a complete list of all fault codes that you can handle with API Monitoring. Fault code, HTTP status,...
Read more >
Untitled
... /s/article/Getting-Invalid-record-length-found-error-when-opening-shapefile ... -cause-the-EMS-server-to-crash-when-messages-are-imported-on-that-topic ...
Read more >
SAP API Management
Secure your digital assets, interfaces. Help protect your data and digital assets in this hyper-connected world. Get deep insights on API usage.
Read more >
The Angular HTTP Client - GET calls with Request Parameters
Can you tell me why I am getting this error from chrome on my m1 MacBook Pro? webpack-dev-server] [HPM] Error occurred while proxying...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found