[ ] Regression
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
When I command "npm start:dev"
An error occurs such as the attached file
.
Here is my dependencies.
"dependencies": {
"@nestjs/common": "^5.7.4",
"@nestjs/core": "^5.7.4",
"@nestjs/graphql": "^6.0.2",
"@nestjs/typeorm": "^6.0.0",
"@types/bcryptjs": "^2.4.2",
"@types/jsonwebtoken": "^8.3.2",
"apollo-server-express": "^2.4.8",
"bcryptjs": "^2.4.3",
"class-transformer": "^0.2.0",
"class-validator": "^0.9.1",
"dotenv": "^7.0.0",
"graphql": "^14.1.1",
"graphql-tools": "^4.0.4",
"jsonwebtoken": "^8.5.1",
"pg": "^7.9.0",
"reflect-metadata": "^0.1.12",
"rimraf": "^2.6.2",
"rxjs": "^6.2.2",
"typeorm": "^0.2.15",
"typescript": "^3.0.1"
},
sry, other issues
As I hit exactly the same error message a day ago, I will just post a "solution" there.
Simply upgrade all @nest stuff to v6 ;) as you can see above, some of the @nest dependencies were still 5.x.
Error: Cannot find module '@nestjs/core/helpers/context-id-factory'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._resolveFilename (/home/muzuri/Documents/AngularApp/nestjs/ideas-api/node_modules/tsconfig-paths/lib/register.js:75:40)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
[nodemon] app crashed - waiting for file changes before starting...
I get this error when i am trying to install GraphQl in my environment by running
npm install @nestjs/graphql graphql apollo-server-express graphql-tools
please any person who can help me it is urgent
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
As I hit exactly the same error message a day ago, I will just post a "solution" there.
Simply upgrade all @nest stuff to v6 ;) as you can see above, some of the @nest dependencies were still 5.x.