[Vuejs]-Building electron app with Vue CLI Plugin Electron Builder (cannot access 'fa' before initialization) โ€“ TypeORM association ManyToOne

0๐Ÿ‘

โœ…

I solve my issue by change the tsconfig.json file

from this :

  "lib": ["es5", "es6", "dom"],
  "module": "esnext",
  "target": "es6",
  "moduleResolution": "node",
  "noImplicitAny": true,
  "removeComments": true,
  "preserveConstEnums": true,
  "sourceMap": true,
  "experimentalDecorators": true,
  "emitDecoratorMetadata": true,
  "esModuleInterop": true,

to this :

  "lib": ["es5", "es6", "dom"],
  "module": "commonjs",
  "target": "esnext",
  "types": ["node", "jest"]
  "moduleResolution": "node",
  "noImplicitAny": true,
  "removeComments": true,
  "preserveConstEnums": true,
  "sourceMap": true,
  "experimentalDecorators": true,
  "emitDecoratorMetadata": true,
  "esModuleInterop": true,

Now the generated files entities have no circular declaration problem.

Leave a comment