withastro / language-tools

Language tools for Astro
MIT License
270 stars 53 forks source link

Vue: Module has no default export #782

Closed porteightyeighty closed 8 months ago

porteightyeighty commented 9 months ago

Astro Info

Astro                    v4.3.5
Node                     v21.6.1
System                   macOS (arm64)
Package Manager          unknown
Output                   hybrid
Adapter                  @astrojs/node
Integrations             @astrojs/react
                         @astrojs/tailwind
                         @astrojs/mdx
                         @astrojs/vue

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

Importing vue file into an astro file comes up with the error "Module 'x' has no default export" when running astro check. It runs fine on the dev server and also builds fine.

What's the expected result?

That the module should be imported without a typescript error.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-ovum2a-54nggq?file=src%2Fcomponents%2FPostPreview.vue

Participation

Yanis64 commented 9 months ago

Same probleme here

Princesseuh commented 8 months ago

Fixed by https://github.com/withastro/language-tools/pull/791