[Vuejs]-Module '"*.vue"' has no exported member 'Hoge'. Did you mean to use 'import Meeting from "*.vue"' instead?ts(2614)

0👍

I am not sure why you are trying to import a type from a vue file but this is what I recommend:

Create a file /types/shared.ts
And add this inside:

export interface Hoge{
  hoge: string
}

Than you can import this interface like this:

import { Hoge } from '~/types/shared'

Leave a comment