0

Based on the following introduction:
https://github.com/microsoft/typescript-vue-starter#single-file-components

I have get started to develop vue.js project based on Typescript. Follow up the introduction, it works ok.

But I have one question. Now I want to add iView UI framework to my project by add the following command to the entry file: index.ts:

import iView from 'iview';
import 'iview/dist/styles/iview.css';

Vue.use(iView);

Then I get the error message:

enter image description here

it seems that both import command can't work. For the first one, now in the project, there is a file named vue-shims.d.ts, which contains the following lines:

declare module "*.vue" {
    import Vue from "vue";
    export default Vue;
}

For the second error, no idea to fix it.

2
  • Seems like a duplicate of stackoverflow.com/questions/48076772/… Commented Jan 9, 2018 at 9:29
  • Read that file, but not fully understand yet. And not sure, if the question is duplicated. Commented Jan 9, 2018 at 10:13

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.