SimonZhangITer / vue-typescript-dpapp-demo

:fire: Let's start with TypeScript
MIT License
625 stars 146 forks source link

ts编译报错:Property 'setSearchVal' has no initializer and is not definitely assigned in the constructor. #14

Open cathy1024 opened 5 years ago

cathy1024 commented 5 years ago

问题描述: TS2564: Property 'setSearchVal' has no initializer and is not definitely assigned in the constructor.

解决方法:修改tsconfig.json,compilerOptions下面加上"strictPropertyInitialization": false