Ionic-framework: Cannot find module '@angular/tsc-wrapped/src/tsc'

Created on 14 Jul 2017  ·  20Comments  ·  Source: ionic-team/ionic-framework

Ionic version: (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[ ] 3.x

I'm submitting a ... (check one with "x")
[1 ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:

E:\Working Project\schoolsDna>ionic cordova run android --prod
? The plugin @ionic/cli-plugin-cordova is not installed. Would you like to install it and continue? Yes

npm install --save-dev --save-exact @ionic/cli-plugin-cordova@latest
√ Running command - done!
[WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova). Your plugins may be out of date.
Error: Cannot find module '@angular/tsc-wrapped/src/tsc'

Expected behavior:

Steps to reproduce:

Related code:

insert any relevant code here

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

insert the output from ionic info here

global packages:

@ionic/cli-utils : 1.5.0
Cordova CLI      : 6.5.0
Ionic CLI        : 3.5.0

local packages:

@ionic/app-scripts              : 1.3.12
@ionic/cli-plugin-cordova       : 1.4.1
@ionic/cli-plugin-ionic-angular : 1.3.2
Cordova Platforms               : android 6.1.2
Ionic Framework                 : ionic-angular 3.5.0

System:

Node       : v7.10.0
OS         : Windows 10
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed
npm        : 5.1.0

Most helpful comment

Run npm install --save-dev @angular/tsc-wrapped in your shell

All 20 comments

P.S.: Update npm to last version may most probably gonna help

done this with npm 5.3 and install node modules again. but still facing same issue

sorry didn't saw you weren't using the actual ionic app-scripts :(

then downgrade npm

or upgrade npm and ionic app-scripts and ionic-angular (but pay attention to the change log https://github.com/ionic-team/ionic/blob/master/CHANGELOG.md a line need to be added to index.html)

Hello, all! At this point, this is due to issues in the latest release of npm. Downgrading to npm 5.1 fixes the issue, but we are considering just adding this package to our package.json (even though we technically shouldn't have too) for the meantime until npm fixes their issue. Gonna keep this one open for now as we discuss what we should do.

@jgw96 downgrading ... or upgrading everything might work too I think

about adding the package in our package.json...at one point npm gonna be fine again, no need to rush ;)

Run npm install --save-dev @angular/tsc-wrapped in your shell

Hello all! As it seems it has been a while since there was any activity on this issue i will be closing it for now. Feel free to comment if you are still running into this issue. Thanks for using Ionic!

This still occurs with npm > 5.1 correct?

Is it Ionic's direction that we should just add @angular/tsc-wrapped to our package.json, or is that still under consideration?

@Barryrowe - FWIW, I am using npm version 5.3 and do not have this issue. What version are you using?

Node v8.4.0
NPM 5.3.0

I just downgraded to NPM 5.2.0 due to this issue and still get the error with @angular/tsc-wrapped not found

Try npm installing that module, angular/etc-wrapped

@wbhob that's where I am at now, which is where my original question comes from. Is that the official path forward, and the templates for Ionic will include the package in package.json?

It's the only fix I have found, and it's pretty standard practice: if one module depends on another, you have to install it.

@wbhob agreed if you depend directly, just odd that it would be installed as a transitive dependency with npm 4.X and not 5.x. Simple solution, just odd.

Hi all, I ran into this myself and was able to resolve it by removing my package-lock.json and node_modules and installing again, after having upgraded node and npm. There must have been an issue with the older version that stayed broken even after upgrading.

Hi everyone thanks to @mylynch and @wbhob , I confirm doing the following resolved my issue (in Ionic Pro):
1.npm install 'at'angular/tsc-wrapped --save

  1. Removed nodu_modules folder
  2. Ran 'NPM install'

I am using node v8.6.0 and NPM 5.3.0 as well as ionic-app-scripts 3.0.1

Ps. Replace 'at' w/ the actual symbol

Node 8 / NPM 5

This can also happen if you lost internet connection while running npm install. @bkarv steps solve the issue.

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BilelKrichen picture BilelKrichen  ·  3Comments

manucorporat picture manucorporat  ·  3Comments

brandyscarney picture brandyscarney  ·  3Comments

alan-agius4 picture alan-agius4  ·  3Comments

MrBokeh picture MrBokeh  ·  3Comments