yjl9903 / unplugin-info

Export build information as a virutal module
https://yjl9903.github.io/unplugin-info/
MIT License
77 stars 6 forks source link

When using with latest vite Plugin is missing a setup function #733

Open gaborbernat opened 1 week ago

gaborbernat commented 1 week ago

Describe the bug

🤔

Reproduction

No response

System Info

✘ [ERROR] Plugin is missing a setup function [plugin unplugin-info]

    /node_modules/vite/node_modules/esbuild/lib/main.js:1232:14:
      1232 │         throw new Error(`Plugin is missing a setup function`);
           ╵               ^

Used Package Manager

None

yjl9903 commented 1 week ago

Is there any minimal reproduction?

gaborbernat commented 1 week ago

Sadly this is not a public repository so I cannot Share it.

yjl9903 commented 1 week ago

I saw your log is reported by esbuild.

Which framework / bundler are you using? Directly vite, or other meta framework like nuxt or astro?

And can you check the imported unplugin-info plugin (unplugin-info/vite and so on) matches your bundler?

yjl9903 commented 1 week ago

Sadly this is not a public repository so I cannot Share it.

Not necessary your private repo.

Can you create another minimal example repo that can trigger this error?

gaborbernat commented 1 week ago

Directly, and I will try to create a repro...