antfu / vite-hot-client

Get Vite's `import.meta.hot` at runtime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No "exports" main defined

frederic-lang opened this issue · comments

Hi,

I'm trying to code a plugin for Vite.

To do that, I would use 'import.meta.hot' in my plugin (published as a library).

When i try to use the hot context you provide,
I get the error
error during build: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /home/fbml1984/projet/vite-editor/node_modules/vite-hot-client/package.json

Do you have an idea how to fix this issue ?