Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Module '"typeorm"' has no exported member 'Column', 'PrimaryGeneratedColumn', 'Entity' - Visual Studio Code

enter image description here

When I create the project with the typeorm CLI, It dont recognize the modules and shows in red 'Module '"typeorm"' has no exported member 'Column'

like image 783
dalthonmh Avatar asked May 10 '26 07:05

dalthonmh


1 Answers

  1. Review if it the module is installed (is must be declared on the package.json and exist the folder node_modules), if is not, install it with yarn add typeorm or npm install typeorm --save.
  2. Review the version of the typeorm, in this example were "typeorm": "^0.2.32".
  3. The solution in my case were close and open again the VSCode.
like image 195
dalthonmh Avatar answered May 12 '26 11:05

dalthonmh