generalpiston / typeorm-encrypted

Encrypted field for typeorm.
MIT License
74 stars 19 forks source link

Cannot find module #29

Closed ontimond closed 3 years ago

ontimond commented 3 years ago

I currently have a problem when I run the npm run start, I'm not quite sure if it's a problem with the typescript setting

error TS2307: Cannot find module 'typeorm-encrypted' or its corresponding type declarations.

tsconfig.json

{
  "compilerOptions": {
    "module": "commonjs",
    "declaration": true,
    "removeComments": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "allowSyntheticDefaultImports": true,
    "target": "es2017",
    "sourceMap": true,
    "outDir": "./dist",
    "baseUrl": "./",
    "incremental": true
  }
}                                            
generalpiston commented 3 years ago
  1. Try deleting your node_modules directory and running npm i again.
  2. Try disabling incremental compilation.
  3. Try adding "lib": ["es5", "es6", "esnext.asynciterable"].
ontimond commented 3 years ago

Thanks, it worked deleting the node_modules folder