0
活字体+ Vueの+要素-UIは、私はVueの+のtypescriptですと要素-UIを使用するにはどうすればよい
は要素-UIには種類がありませんので、私はそれをインポートするとき
import Vue from 'vue';
import Element from 'element-ui'
私はエラーを取得する
Could not find a declaration file for module 'element-ui'. '/home/andres/Code/cdr/frontend/node_modules/element-ui/lib/element-ui.common.js' implicitly has an 'any' type.
どうすれば対処できますか?
// in element-ui.d.ts
declare module "element-ui";
これは、あなたがany
として入力するelement-ui
からインポートものになります:
あなたのタイスクリプト設定を追加できますか? – imcvampire