@Types/Sequelize Error TS1086: An accessor cannot be declared in ambient context

后端 未结 3 528
南旧
南旧 2020-12-06 16:41

I have a project that shows this error when I run \'tsc\':

../modules/node_modules/sequelize/types/lib/transaction.d.ts:33:14 - error TS1086: An accessor can         


        
3条回答
  •  自闭症患者
    2020-12-06 17:14

    I have Angular 8. it is working with typescript version of 3.4.5. so solve this issue do below steps.

    step 1) go to the tsconfig.json file

    step 2) add skipLibCheck: true in "compilerOptions" object. It works for me.

    "compilerOptions": {
        "module": "commonjs",
        "moduleResolution": "node",
        "strict": true,
        "target": "es5",
        "declaration": true,
        "declarationDir": "dist-debug/",
        "skipLibCheck": true, /// Needs to be true to fix wrong alias types being used
    
      },
    

提交回复
热议问题