unplugin / unplugin-vue-components

📲 On-demand components auto importing for Vue
https://www.npmjs.com/package/unplugin-vue-components
MIT License
3.65k stars 341 forks source link

fix: use import for QuasarResolver api-list.json #765

Closed stefanvanherwijnen closed 4 weeks ago

stefanvanherwijnen commented 4 weeks ago

Description

After upgrading my packages, the QuasarResolver stopped working. I think this is due to Quasar 2.16.0 having moved to ESM (https://github.com/quasarframework/quasar/releases/tag/quasar-v2.16.0). resolveModule fails for some reason which leads to an empty list. The strange thing is that adding a console.log() in the resolve function seems to fix it...

Instead of using readFile it now uses import()

Linked Issues

Additional context

stackblitz[bot] commented 4 weeks ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

stefanvanherwijnen commented 4 weeks ago

It probably was a different problem...