harlan-zw / nuxt-site-config

Unifying site config with powerful and flexible APIs, for module authors and users.
https://nuxtseo.com/site-config
MIT License
66 stars 6 forks source link

Probleme import on Sitelin component. #9

Closed DascoRM closed 1 year ago

DascoRM commented 1 year ago

Describe the bug

Hello, I've a probleme import on Sitelink component... Just after install nuxt-simple-sitemap v4.0.1 error You know why this erorr pop ?

Reproduction

after install nuxt-sitemap

System / Nuxt Info

Nuxt v3.8.0
harlan-zw commented 1 year ago

Hi, did you disable auto imports by any chance?

DascoRM commented 1 year ago

No, we have a simple Nuxt3 typescript setup, by the book. The issue appeared after installing the nuxt-simple-sitemap module which has this repository as a dependancy.

harlan-zw commented 1 year ago

Did you run nuxi prepare first? #imports is definitely valid but is generated at runtime

However, maybe should probably not lint node_modules? I'm not sure how I can fix this on my end

MaxNvk commented 1 year ago

Have the same problem. Simple Nuxt 3 + TypeScript setup. I run nuxi prepare, but it doesn't help.

harlan-zw commented 1 year ago

I've reworked the logic in 1.6.1 which should solve the type issue.