No "exports" main defined
frederic-lang opened this issue · comments
frederic-lang commented
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 ?