mgechev / angular-seed

🌱 [Deprecated] Extensible, reliable, modular, PWA ready starter project for Angular (2 and beyond) with statically typed build and AoT compilation
https://mgechev.github.io/angular-seed
MIT License
4.57k stars 1.45k forks source link

⨯ Unable to compile TypeScript #147

Closed ghost closed 8 years ago

ghost commented 8 years ago

/var/www/html/ng2-lab/angular2-seed$ npm run serve.dev

angular2-seed@0.0.0 serve.dev /var/www/html/ng2-lab/angular2-seed gulp serve.dev

[11:57:53] Requiring external module ts-node/register

⨯ Unable to compile TypeScript

I am getting this error, with angular alpha 0.40

vigie commented 8 years ago

A couple final notes on this cloud 9 stuff.

srishiva89 commented 8 years ago

While running "npm test". I'm gettting below error:-

[09:46:03] Requiring external module ts-node/register TSError: ⨯ Unable to compile TypeScript test\gulpfile.ts (1,22): Cannot find module 'path'. (2307) test\gulpfile.ts (4,9): Cannot find name 'require'. (2304) test\gulpfile.ts (12,9): Cannot find name 'require'. (2304) test\gulpfile.ts (13,16): Cannot find name 'require'. (2304) test\gulpfile.ts (14,18): Cannot find name 'require'. (2304) test\gulpfile.ts (14,31): Cannot find name 'process'. (2304) test\gulpfile.ts (30,25): Cannot find name 'require'. (2304) test\gulpfile.ts (46,18): Cannot find name 'require'. (2304) test\gulpfile.ts (57,20): Cannot find name 'require'. (2304) test\gulpfile.ts (59,22): Cannot find name 'process'. (2304) test\gulpfile.ts (69,20): Cannot find name 'require'. (2304) test\gulpfile.ts (71,22): Cannot find name 'process'. (2304) test\gulpfile.ts (82,21): Cannot find name 'require'. (2304) at getOutput (A:\project\dx2\node_modules\ts-node\src\ts-node.ts:210:13) at Object.loader (A:\project\dx2\node_modules\ts-node\src\ts-node.ts:225:23) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Liftoff.handleArguments (A:\project\dx2\node_modules\gulp\bin\gulp.js:116:3) at Liftoff. (A:\project\dx2\node_modules\gulp\node_modules\liftoff\index.js:193:16) at module.exports (A:\project\dx2\node_modules\gulp\node_modules\liftoff\node_modules\flagged-respawn\index.js:17:3) at Liftoff. (A:\project\dx2\node_modules\gulp\node_modules\liftoff\index.js:185:9) npm ERR! Test failed. See above for more details.

zladuric commented 8 years ago

@srishiva89 I've just went through this whole thread with the same problem, and what worked for me is the comment by @sarath2:

tsc --project tsconfig.json
npm start

This after a git checkout to a fresh folder.

zenghuiLee commented 8 years ago

tsc --project tsconfig.json

helps

mukhtarali333 commented 7 years ago

I am having this issue when i start npm........npm installed successfully node js v6.9.5 npm 3.10.10

angular-quickstart@1.0.0 start C:\Projects\myapp tsc && concurrently "tsc -w" "lite-server"

Error occured when executing command: tsc -w Error: Unable to detect platform shell type. Please set SHELL_EXECUTE_FLAG env variable. at detectExecuteFlag (C:\Projects\myapp\node_modules\spawn-default-shell\src\get-shell.js:29:9) at getShell (C:\Projects\myapp\node_modules\spawn-default-shell\src\get-shell.js:37:18) at Object.spawn (C:\Projects\myapp\node_modules\spawn-default-shell\src\index.js:5:24) at C:\Projects\myapp\node_modules\concurrently\src\main.js:192:34 at arrayMap (C:\Projects\myapp\node_modules\lodash\lodash.js:660:23) at Function.map (C:\Projects\myapp\node_modules\lodash\lodash.js:9571:14) at run (C:\Projects\myapp\node_modules\concurrently\src\main.js:181:22) at main (C:\Projects\myapp\node_modules\concurrently\src\main.js:61:5) at Object. (C:\Projects\myapp\node_modules\concurrently\src\main.js:421:1) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:394:7)

Thanks in advance

mgechev commented 7 years ago

angular-quickstart@1.0.0 start C:\Projects\myapp tsc && concurrently "tsc -w" "lite-server"

This doesn't seem to have anything to do with angular-seed.