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.

bug: Ionic 5 rc.1, Angular 9 rc.11 - An unhandled exception occurred: error TS5058: The specified path does not exist

See original GitHub issue

Bug Report

Ionic version:

[x] 5.x

Current behavior:

C:\ae\ae-a9i5-side-tabs>npm test

> ae-a9i5-side-tabs@0.5.1 test C:\ae\ae-a9i5-side-tabs
> ng test

An unhandled exception occurred: error TS5058: The specified path does not exist: 'C:/ae/tsconfig.json'.

See "C:\Users\PETERE~1\AppData\Local\Temp\ng-izBywS\angular-errors.log" for further details.
npm ERR! Test failed.  See above for more details.

C:\ae\ae-a9i5-side-tabs>

I am running in the project folder but the error is referring to tcsonfig in the parent folder.

The errors log file is:

[error] Error: error TS5058: The specified path does not exist: 'C:/ae/tsconfig.json'.

    at Object.readTsconfig (C:\ae\ae-a9i5-side-tabs\node_modules\@angular-devkit\build-angular\src\angular-cli-files\utilities\read-tsconfig.js:27:15)
    at generateWebpackConfig (C:\ae\ae-a9i5-side-tabs\node_modules\@angular-devkit\build-angular\src\utils\webpack-browser-config.js:29:38)
    at Object.generateBrowserWebpackConfigFromContext (C:\ae\ae-a9i5-side-tabs\node_modules\@angular-devkit\build-angular\src\utils\webpack-browser-config.js:114:26)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)

Expected behavior:

Test works.

Steps to reproduce:

The app works but test does not.

Also Angular error for undefined property null.

Capture261

Capture262

Related code:

Repo: https://github.com/adaept/ae-a9i5-side-tabs

Other information:

Ionic info:

C:\ae\ae-a9i5-side-tabs>ionic info

Ionic:

   Ionic CLI                     : 5.2.5 (C:\Users\peterennis\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 5.0.0-rc.1
   @angular-devkit/build-angular : 0.900.0-rc.11
   @angular-devkit/schematics    : 9.0.0-rc.11
   @angular/cli                  : 9.0.0-rc.11
   @ionic/angular-toolkit        : 2.1.2

Cordova:

   Cordova CLI       : not installed
   Cordova Platforms : not available
   Cordova Plugins   : not available

Utility:

   cordova-res : not installed
   native-run  : not installed

System:

   NodeJS : v10.15.1 (C:\Program Files\nodejs\node.exe)
   npm    : 6.4.1
   OS     : Windows 10


C:\ae\ae-a9i5-side-tabs>

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
peterenniscommented, Jan 30, 2020

@liamdebeasi

  1. I will check with a blank project. Does it need Ionic 5 installed globally?
  2. Thanks for the pointer. I will debug it.
0reactions
ionitron-bot[bot]commented, Mar 3, 2020

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: Ionic 5 rc.1, Angular 9 rc.11 - An unhandled exception ...
bug: Ionic 5 rc.1, Angular 9 rc.11 - An unhandled exception occurred: error TS5058: The specified path does not exist #20336.
Read more >
Project "app" does not exist. getting this error after ionic serve ...
To add ionic to my Angular 7 project. As title says I am getting this error: An unhandled exception occurred: Project "app" does...
Read more >
Path problem occurs after updating to angular 11 - Ionic Forum
An unhandled exception occurred: Cannot find module '@angular-devkit/ ... after updating to Ionic CLI 6.12.4, but I am still with Angular 9:
Read more >
Building an Ionic Multi App Project with Shared Angular Library
Because Angular creates new projects and libraries in the projects/ folder we will follow that structure for our endeavour as well. The result ......
Read more >
Leveraging Angular Prereleases to keep Ionic in Sync
Now, because Ionic Framework is a library, and not the native mobile app itself, updating Ionic Framework isn't the same as updating an...
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