Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module '@angular/tsc-wrapped/src/tsc' #12357

Closed
vksgautam1 opened this issue Jul 14, 2017 · 20 comments
Closed

Cannot find module '@angular/tsc-wrapped/src/tsc' #12357

vksgautam1 opened this issue Jul 14, 2017 · 20 comments

Comments

@vksgautam1
Copy link

vksgautam1 commented Jul 14, 2017

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
@peterpeterparker
Copy link
Contributor

Duplicate #12065

@peterpeterparker
Copy link
Contributor

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

@vksgautam1
Copy link
Author

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

@peterpeterparker
Copy link
Contributor

peterpeterparker commented Jul 14, 2017

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)

@jgw96 jgw96 added the v3 label Jul 14, 2017
@jgw96
Copy link
Contributor

jgw96 commented Jul 14, 2017

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.

@peterpeterparker
Copy link
Contributor

@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 ;)

@wbhob
Copy link

wbhob commented Jul 19, 2017

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

@jgw96
Copy link
Contributor

jgw96 commented Jul 19, 2017

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!

@jgw96 jgw96 closed this as completed Jul 19, 2017
@Barryrowe
Copy link
Contributor

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?

@kensodemann
Copy link
Member

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

@Barryrowe
Copy link
Contributor

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

@wbhob
Copy link

wbhob commented Sep 1, 2017

Try npm installing that module, angular/etc-wrapped

@Barryrowe
Copy link
Contributor

@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?

@wbhob
Copy link

wbhob commented Sep 2, 2017

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.

@Barryrowe
Copy link
Contributor

@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.

@mlynch
Copy link
Contributor

mlynch commented Sep 11, 2017

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.

@bkarv
Copy link

bkarv commented Oct 22, 2017

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
2. Removed nodu_modules folder
3. 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

@wbhob
Copy link

wbhob commented Oct 22, 2017

Node 8 / NPM 5

@ommyjay
Copy link

ommyjay commented Mar 21, 2018

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

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 1, 2018

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants