angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

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

Open HomeboxJim opened this issue 10 years ago • 31 comments

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 --version and 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.

HomeboxJim avatar Nov 17 '16 20:11 HomeboxJim

Thanks npm install @angular/tsc-wrapped autoprefixer command will helu me

nidhivc avatar Jul 25 '17 11:07 nidhivc

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

dorontal avatar Aug 04 '17 21:08 dorontal

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

GabrielBB avatar Oct 02 '17 01:10 GabrielBB

Doing "npm install @angular/tsc-wrapped autoprefixer" as @snagar78 said fixed the issue :)

GabrielBB avatar Oct 02 '17 01:10 GabrielBB

Thank you! Are "tsc-wrapped" and "autoprefixer" now required for using Ionic CLI? This seems odd.

bidwej avatar Nov 01 '17 17:11 bidwej

@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

JeremyLopez avatar Nov 03 '17 16:11 JeremyLopez

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

corbywenzelbach avatar Nov 07 '17 19:11 corbywenzelbach

thanks @GabrielBB it works

fdambrosio avatar Nov 08 '17 10:11 fdambrosio

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

sketchthat avatar Nov 20 '17 00:11 sketchthat

Hy, I just run this command, and it's worked: npm install --save-dev @angular/tsc-wrapped

Hammad6264 avatar Apr 01 '19 11:04 Hammad6264

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.