在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/HTML/ typescript decorator報錯

typescript decorator報錯

TypeScript decorator reports “Unable to resolve signature of class decorator when called as an expression”

圖片描述

同樣的兩段代碼,同樣的vue-property-decorator,編譯器報錯。不清楚是我哪里有問題?

  "dependencies": {
    "vue": "^2.5.2",
    "vue-class-component": "^6.0.0",
    "vue-property-decorator": "^6.0.0",
    "vue-router": "^3.0.1"
  },
  "devDependencies": {
    "css-loader": "^0.28.1",
    "ts-loader": "^2.0.3",
    "typescript": "^2.3.2",
    "vue-loader": "^12.0.3",
    "vue-template-compiler": "^2.5.2",
    "webpack": "^2.5.0"
  }
回答
編輯回答
執(zhí)念

是不是兩段代碼導(dǎo)入的Component并不是同一個,注意到你的兩個import語句其實是不同的。

2017年12月26日 18:12