SimonZhangITer / vue-typescript-dpapp-demo

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

npm run dev 报错 #11

Open GavenXia opened 6 years ago

GavenXia commented 6 years ago
itshizhan commented 6 years ago

@GavenXia
你这个报错信息贴的不完整啊,没有办法帮助到你

wq93 commented 6 years ago

vue-typecript-dpapp-demo@1.0.0 dev E:\My_project\Ts-vue\vue-typescript-dpapp-demo webpack-dev-server --inline --progress --config build/webpack.dev.conf.js

94% asset optimization

ERROR Failed to compile with 11 errors 11:18:47

error in E:\My_project\Ts-vue\vue-typescript-dpapp-demo\src\components\shops.vue.ts

[tsl] ERROR in E:\My_project\Ts-vue\vue-typescript-dpapp-demo\src\components\shops.vue.ts(27,10) TS2564: Property 'shops' has no initializer and is not definitely assigned in the constructor.

error in E:\My_project\Ts-vue\vue-typescript-dpapp-demo\src\components\shops.vue.ts

[tsl] ERROR in E:\My_project\Ts-vue\vue-typescript-dpapp-demo\src\components\shops.vue.ts(28,10) TS2564: Property 'searchVal' has no initializer and is not definitely assigned in the constructor.

error in E:\My_project\Ts-vue\vue-typescript-dpapp-demo\src\components\board.vue.ts

[tsl] ERROR in E:\My_project\Ts-vue\vue-typescript-dpapp-demo\src\components\board.vue.ts(21,10) TS2564: Property 'activities' has no initializer and is not definitely assigned in the constructor.

error in E:\My_project\Ts-vue\vue-typescript-dpapp-demo\src\components\super_sale.vue.ts

[tsl] ERROR in E:\My_project\Ts-vue\vue-typescript-dpapp-demo\src\components\super_sale.vue.ts(26,10) TS2564: Property 'superSales' has no initializer and is not definitely assigned in the constructor.

error in E:\My_project\Ts-vue\vue-typescript-dpapp-demo\src\components\headline.vue.ts

[tsl] ERROR in E:\My_project\Ts-vue\vue-typescript-dpapp-demo\src\components\headline.vue.ts(24,10) TS2564: Property 'login' has no initializer and is not definitely assigned in the constructor.

error in E:\My_project\Ts-vue\vue-typescript-dpapp-demo\src\components\headline.vue.ts

[tsl] ERROR in E:\My_project\Ts-vue\vue-typescript-dpapp-demo\src\components\headline.vue.ts(25,10) TS2564: Property 'headline' has no initializer and is not definitely assigned in the constructor.

error in E:\My_project\Ts-vue\vue-typescript-dpapp-demo\src\components\modules.vue.ts

[tsl] ERROR in E:\My_project\Ts-vue\vue-typescript-dpapp-demo\src\components\modules.vue.ts(22,10) TS2564: Property 'modules' has no initializer and is not definitely assigned in the constructor.

error in E:\My_project\Ts-vue\vue-typescript-dpapp-demo\src\components\header.vue.ts

[tsl] ERROR in E:\My_project\Ts-vue\vue-typescript-dpapp-demo\src\components\header.vue.ts(18,11) TS2564: Property 'setSearchVal' has no initializer and is not definitely assigned in the constructor.

error in E:\My_project\Ts-vue\vue-typescript-dpapp-demo\src\views\main.vue.ts

[tsl] ERROR in E:\My_project\Ts-vue\vue-typescript-dpapp-demo\src\views\main.vue.ts(36,10) TS2564: Property 'login' has no initializer and is not definitely assigned in the constructor.

error in E:\My_project\Ts-vue\vue-typescript-dpapp-demo\src\views\main.vue.ts

[tsl] ERROR in E:\My_project\Ts-vue\vue-typescript-dpapp-demo\src\views\main.vue.ts(37,11) TS2564: Property 'initAjax' has no initializer and is not definitely assigned in the constructor.

error in E:\My_project\Ts-vue\vue-typescript-dpapp-demo\src\views\main.vue.ts

[tsl] ERROR in E:\My_project\Ts-vue\vue-typescript-dpapp-demo\src\views\main.vue.ts(38,11) TS2564: Property 'load' has no initializer and is not definitely assigned in the constructor.