You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that Vite doesn't use the right package.json#exports names:
~/code/telefunc/examples/authentication (brillout/vite-6|u=) pnpm run dev
> @ dev /home/rom/code/telefunc/examples/authentication
> npm run server
> server
> vite
VITE v6.0.2 ready in 789 ms
➜ press h + enter to show help
Server running at http://localhost:3000
✘ [ERROR] No known conditions for "./stringify" specifier in "@brillout/json-serializer" package [plugin vite:dep-pre-bundle]
../../telefunc/dist/cjs/node/server/runTelefunc/serializeTelefunctionResult.js:4:28:
4 │ const stringify_1 = require("@brillout/json-serializer/stringify");
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This error came from the "onResolve" callback registered here:
../../node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1150:20:
1150 │ let promise = setup({
╵ ^
at setup (file:///home/rom/code/telefunc/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-A4nAWF7x.js:16602:13)
at handlePlugins (/home/rom/code/telefunc/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1150:21)
at buildOrContextImpl (/home/rom/code/telefunc/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:873:5)
at Object.buildOrContext (/home/rom/code/telefunc/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:699:5)
at /home/rom/code/telefunc/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:2037:68
at new Promise (<anonymous>)
at Object.context (/home/rom/code/telefunc/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:2037:27)
at Object.context (/home/rom/code/telefunc/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1879:58)
at prepareEsbuildOptimizerRun (file:///home/rom/code/telefunc/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-A4nAWF7x.js:18794:33)
git clone [email protected]:brillout/telefunc
cd telefunc/
git checkout brillout/vite-6
pnpm install
pnpm run build
cd examples/authentication/
pnpm run dev
Same as single line (copy & paste me):
git clone [email protected]:brillout/telefunc &&cd telefunc/ && git checkout brillout/vite-6 && pnpm install && pnpm run build &&cd examples/authentication/ && pnpm run dev
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
It seems that Vite doesn't use the right
package.json#exports
names:Reproduction
brillout/telefunc#130
Steps to reproduce
Same as single line (copy & paste me):
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: