Unable to compile TypeScript
See original GitHub issueHello lathonez, could you try help me? I updated my project to yours latest configs, but my npm test
gives me:
Requiring external module ts-node/register
TSError: ⨯ Unable to compile TypeScript
test/gulpfile.ts (2,31): Cannot find module 'path'. (2307)
test/gulpfile.ts (3,31): Cannot find module 'del'. (2307)
test/gulpfile.ts (4,31): Cannot find module 'fs'. (2307)
test/gulpfile.ts (5,31): Cannot find module 'glob'. (2307)
test/gulpfile.ts (6,31): Cannot find module 'gulp'. (2307)
test/gulpfile.ts (7,31): Cannot find module 'istanbul'. (2307)
test/gulpfile.ts (8,31): Cannot find module 'karma'. (2307)
test/gulpfile.ts (9,31): Cannot find module 'gulp-load-plugins'. (2307)
test/gulpfile.ts (10,31): Cannot find module 'run-sequence'. (2307)
test/gulpfile.ts (16,13): Cannot find name 'require'. (2304)
test/gulpfile.ts (16,26): Cannot find name 'process'. (2304)
test/gulpfile.ts (17,50): Cannot find name 'process'. (2304)
test/gulpfile.ts (50,25): Cannot find name 'require'. (2304)
test/gulpfile.ts (85,24): Cannot find name 'process'. (2304)
test/gulpfile.ts (97,24): Cannot find name 'process'. (2304)
test/gulpfile.ts (146,32): Property 'find' does not exist on type 'string[]'. (2339)
test/gulpfile.ts (159,28): Cannot find name 'require'. (2304)
at getOutput (/home/julio/git/platypus/node_modules/ts-node/src/ts-node.ts:209:13)
at Object.loader (/home/julio/git/platypus/node_modules/ts-node/src/ts-node.ts:224:23)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Liftoff.handleArguments (/home/julio/git/platypus/node_modules/gulp/bin/gulp.js:116:3)
at Liftoff.<anonymous> (/home/julio/git/platypus/node_modules/liftoff/index.js:193:16)
at module.exports (/home/julio/git/platypus/node_modules/flagged-respawn/index.js:17:3)
at Liftoff.<anonymous> (/home/julio/git/platypus/node_modules/liftoff/index.js:185:9)
npm ERR! Test failed. See above for more details.
I already removed node_modules/ and typings/, but still can’t make it work. Would you have any tips to solve it?
PS: Clicker project works just fine.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Error: TSError: Unable to compile TypeScript - Stack Overflow
My Project is built on Angular4 with typescript, e2e testing with protractor & karma. Travis-ci has this error: [03:34:54] E/launcher - Error: ...
Read more >TSError: Unable to compile TypeScript after version `10.1.0 ...
After upgrading from version 10.0.3 to 10.1.0 cypress shows this error. The typescript file seems to be ignored, the project works fine with...
Read more >I got Unable to compile TypeScript error - CircleCI Discuss
[test:execute] TSError: ⨯ Unable to compile TypeScript: [test:execute] src/step_definitions/DEMO_RESTAPI.
Read more >Nuxt 3 build logs "unable to compile TypeScript" - Support
Nuxt 3 build fails as it seems to have any weird issues with the package ts-node . I have the feeling that it...
Read more >Troubleshooting | ts-node - TypeStrong · GitHub
You have installed an ESM dependency but your own code compiles to CommonJS. Solution: configure your project to compile and execute as native...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks legit. If you can chat on gitter it might be easier
When I updated my project i did the following.
Update project from clicker