errors while debugging the code

Tagged: 

Back to course
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #40566

    [email protected]
    Participant

    C:\Users\Dell\hobatops>ionic serve
    > ng.cmd run app:serve –host=localhost –port=8100
    [ng] An unhandled exception occurred: Could not find module “@angular-devkit/build-angular” from “C:\\Users\\Dell\\hobatops”.
    [ng] See “C:\Users\Dell\AppData\Local\Temp\ng-zNyVmV\angular-errors.log” for further details.

    [ERROR] ng has unexpectedly closed (exit code 127).

    The Ionic CLI will exit. Please check any output above for error details.

    #40758

    WPLMS
    Keymaster

    The error says it all and it is specifically pointing to the error which is clearly not located in the App files.

    A quick google search also gives the solution : https://prnt.sc/qabslf and it is clearly outside the support scope of the project.

    #40763

    Scott Lang
    Keymaster

    Hi,

    As per the error details which you have shared with us we have figured out that It is an issue of the ionic setup, not code issue which we have used in our App.

    But as per our search, we have found that the dependency of @angular-devkit/build-angular” is not installed at your system

    Please run this command: npm install –save-dev @angular-devkit/build-angular to the root of your project

    Or you can do rename node_modules and replace package.json with ours: https://we.tl/t-L7WsWiuCwo and run npm install . It will create a new node_modules(dependency folder). Then try to run ionic serve.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.