Cannot find module '@angular/tsc-wrapped/src/tsc'
Please provide us with the following information:
OS?
Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Mac OsX 10.11.6
Versions.
Please run
ng --version. If there's nothing outputted, please run in a Terminal:node --versionand paste the result here:
ng --version gives this error: Cannot find module '@angular/tsc-wrapped/src/tsc'
Repro steps.
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
Mention any other details that might be useful.
Followed the tutorial to update cli. Now it is broken on all ng commands...
Thanks! We'll be in touch soon.
Thanks npm install @angular/tsc-wrapped autoprefixer command will helu me
Same problem for me on Ubuntu Linux OS. Here's some OS, Node and npm version info:
OS: Linux 16.04 NPM: 4.2.0 Node: 7.8.0
I'm having this issue using the Ionic Dashboard after i imported these packages:
import { File } from '@ionic-native/file';
import { Transfer } from '@ionic-native/transfer';
import { FilePath } from '@ionic-native/file-path';
import { Camera } from '@ionic-native/camera';
It doesn't happen in local but when i upload to the dashboard so i can easily test my app it throws the following error;
npm info using [email protected] npm info using [email protected] npm info lifecycle [email protected]~prebuild: [email protected] npm info lifecycle [email protected]~build: [email protected]
[email protected] build /usr/src/app ionic-app-scripts build
module.js:487 throw err; ^
Error: Cannot find module '@angular/tsc-wrapped/src/tsc' at Function.Module._resolveFilename (module.js:485:15) at Function.Module._load (module.js:437:25) at Module.require (module.js:513:17) at require (internal/module.js:11:18) at Object. (/usr/src/app/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:7:13) at Module._compile (module.js:569:30) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:503:32) at tryModuleLoad (module.js:466:12) at Function.Module._load (module.js:458:3) npm info lifecycle [email protected]~build: Failed to exec build script
Doing "npm install @angular/tsc-wrapped autoprefixer" as @snagar78 said fixed the issue :)
Thank you! Are "tsc-wrapped" and "autoprefixer" now required for using Ionic CLI? This seems odd.
@bidwej I think it might be? My build script just started failing with the most recent update. After running that, it introduced a whole slew of additional errors
@snagar78 Thank you, "npm install @angular/tsc-wrapped autoprefixer" worked for me as well. I had the same error when trying to build my ionic project on android.
thanks @GabrielBB it works
@GabrielBB I was getting an error while trying to install those two packages. I had just upgraded to [email protected]. I downgraded back to [email protected] and it solved the problem.
npm install [email protected] -g.
Hy, I just run this command, and it's worked: npm install --save-dev @angular/tsc-wrapped
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.