zunnzunn / vue-ganttastic

Simple, interactive and highly customizable Gantt chart component for Vue 3
https://zunnzunn.github.io/vue-ganttastic/
589 stars 145 forks source link

Cannot find module '@infectoone/vue-ganttastic' or its corresponding type declarations. #32

Open IspeakIT opened 2 years ago

IspeakIT commented 2 years ago

Hi, I get the following error when importing. My project uses the latest version of Vue 3.2.31 But unfortunately, this error always comes. What am I doing wrong?

ERROR in src/main.ts:3:24 TS2307: Cannot find module '@infectoone/vue-ganttastic' or its corresponding type declarations. 1 | import {createApp} from 'vue' 2 | import App from './App.vue'

3 | import ganttastic from '@infectoone/vue-ganttastic';

aprasad2 commented 2 years ago

I am having the same issue - I added // @ts-ignore right before the import line.

ghost commented 2 years ago

Confirming that I had the same problem and that using ts-ignore works.

` import { createApp } from 'vue' import App from './App.vue'

// @ts-ignore import ganttastic from '@infectoone/vue-ganttastic'

createApp(App) .use(ganttastic) .mount('#app')

`

dpschen commented 2 years ago

The package currently doesn't expose types. See: https://github.com/InfectoOne/vue-ganttastic/pull/53

zunnzunn commented 2 years ago

Now that #53 and #62 have been merged, I'd be thankful if someone could install the latest version and tell me if the problem still persists (because I was not getting the error in the first place anyways).