Skip to content
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

typescript Cannot find module '@nestjs/typeorm' #7

Closed
CreationLee opened this issue Jan 17, 2018 · 6 comments
Closed

typescript Cannot find module '@nestjs/typeorm' #7

CreationLee opened this issue Jan 17, 2018 · 6 comments
Labels

Comments

@CreationLee
Copy link

I had installed the nestjs/typeorm, but it just not work or 'cannot be found'

@fwoelffel
Copy link
Contributor

Can you show us your package.json?

@kamilmysliwiec
Copy link
Member

hi @CreationLee,
looking for it ^ as well

@centigrade-julian-lang
Copy link

centigrade-julian-lang commented Jun 14, 2018

I have a maybe related issue: in my case it's said that "@nestjs/common" cannot be found. My import statement is the following: "import { Module } from '@nestjs/common';"

My package.json is:

{
  "name": "test-app",
  "version": "0.0.0",
  "description": "",
  "author": "",
  "license": "MIT",
  "scripts": {
    "format": "prettier --write \"**/*.ts\"",
    "start": "ts-node -r tsconfig-paths/register src/main.ts",
    "start:dev": "nodemon",
    "prestart:prod": "rm -rf dist && tsc",
    "start:prod": "node dist/main.js",
    "start:hmr": "node dist/server",
    "test": "jest",
    "test:cov": "jest --coverage",
    "test:e2e": "jest --config ./test/jest-e2e.json",
    "webpack": "webpack --config webpack.config.js"
  },
  "dependencies": {
    "@nestjs/common": "^5.0.0",
    "@nestjs/core": "^5.0.0",
    "@nestjs/microservices": "^5.0.0",
    "@nestjs/testing": "^5.0.0",
    "@nestjs/websockets": "^5.0.0",
    "dotenv": "^6.0.0",
    "fastify-formbody": "^2.0.0",
    "reflect-metadata": "^0.1.12",
    "rxjs": "^6.0.0",
    "typescript": "^2.6.2"
  },
  "devDependencies": {
    "@types/express": "^4.0.39",
    "@types/jest": "^21.1.8",
    "@types/node": "^9.6.21",
    "@types/supertest": "^2.0.4",
    "jest": "^21.2.1",
    "nodemon": "^1.14.1",
    "prettier": "^1.11.1",
    "supertest": "^3.0.0",
    "ts-jest": "^21.2.4",
    "ts-loader": "^4.1.0",
    "ts-node": "^4.1.0",
    "tsconfig-paths": "^3.1.1",
    "tslint": "5.3.2",
    "webpack": "^4.2.0",
    "webpack-cli": "^2.0.13",
    "webpack-node-externals": "^1.6.0"
  },
  "jest": {
    "moduleFileExtensions": [
      "js",
      "json",
      "ts"
    ],
    "rootDir": "src",
    "testRegex": ".spec.ts$",
    "transform": {
      "^.+\\.(t|j)s$": "ts-jest"
    },
    "coverageDirectory": "../coverage"
  }
}

Any ideas?

@arturcesarmelo
Copy link

same here

@jbojbo
Copy link

jbojbo commented Oct 25, 2021

don't know if this helps, but i did:
yarn add typeorm
and after getting another exception i did:
yarn add rxjs@^7
https://stackoverflow.com/a/68319118/1961312

@kamilmysliwiec
Copy link
Member

Please, use our Discord channel (support) for such questions. We are using GitHub to track bugs, feature requests, and potential improvements.

@nestjs nestjs locked and limited conversation to collaborators Oct 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants