-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
TSError: ⨯ Unable to compile TypeScript #7
Comments
Looks like you need to change
|
I fixed the problem with ➜ nest-typescript-starter git:(master) ✗ yarn start 18:00:47
yarn start v0.24.5
$ node index.js
/home/felquis/code/nest-typescript-starter/node_modules/ts-node/src/index.ts:316
throw new TSError(formatDiagnostics(diagnosticList, cwd, ts, lineOffset))
^
TSError: ⨯ Unable to compile TypeScript
Cannot find type definition file for 'node'. (2688)
src/server.ts (1,29): Cannot find module '@nestjs/core'. (2307)
src/server.ts (2,35): Cannot find module './modules/app.module'. (2307)
at getOutput (/home/felquis/code/nest-typescript-starter/node_modules/ts-node/src/index.ts:316:17)
at /home/felquis/code/nest-typescript-starter/node_modules/ts-node/src/index.ts:347:18
at Object.compile (/home/felquis/code/nest-typescript-starter/node_modules/ts-node/src/index.ts:474:19)
at Module.m._compile (/home/felquis/code/nest-typescript-starter/node_modules/ts-node/src/index.ts:410:44)
at Module._extensions..js (module.js:580:10)
at Object.require.extensions.(anonymous function) [as .ts] (/home/felquis/code/nest-typescript-starter/node_modules/ts-node/src/index.ts:413:12)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
error Command failed with exit code 1. |
@felquis try |
@felquis Doing this fixed my issues: |
Just tried @Jflima92 's solution with no success. Got this error instead:
Any ideas? Where's @kamilmysliwiec ? I'm really excited about Nest. |
Hey guys, You can also try this and give me your feedback starter kit implementation with sequelize and jwt |
Ok I reinstalled the project, had the first problem and then did |
fixing |
Hi, |
Do not forget to import the decorator ;)
|
[nodemon] 1.19.4 SyntaxError: Cannot use import statement outside a module |
The text was updated successfully, but these errors were encountered: