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 isn't clear how the project structure is, and what is the preferred way to run the examples/react directories. apparently it uses workspace features but when I try to run them I get
~/r/r/e/r/quickstart bug-report ± pnpm run dev
WARN Issue while reading "/home/scarf/repo/router/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
> [email protected] dev /home/scarf/repo/router/examples/react/quickstart
> vite
vite v2.9.15 dev server running at:
> Local: http://localhost:3000/
> Network: use `--host` to expose
ready in 187ms.
✘ [ERROR] [plugin vite:dep-scan] Failed to resolve entry for package "@tanstack/react-router". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "@tanstack/react-router". The package may have incorrect main/module/exports specified in its package.json.
../../../node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-689425f3.js:40970:10:
40970 │ throw new Error(`Failed to resolve entry for pac...
╵ ^
at packageEntryFailure (/home/scarf/repo/router/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-689425f3.js:40970:11)
at resolvePackageEntry (/home/scarf/repo/router/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-689425f3.js:40966:9)
at tryNodeResolve (/home/scarf/repo/router/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-689425f3.js:40773:20)
at Context.resolveId (/home/scarf/repo/router/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-689425f3.js:40581:28)
at Object.resolveId (/home/scarf/repo/router/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-689425f3.js:39254:55)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async resolve (/home/scarf/repo/router/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-689425f3.js:39466:26)
at async /home/scarf/repo/router/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-689425f3.js:39626:34
at async callback (/home/scarf/repo/router/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:933:28)
at async handleRequest (/home/scarf/repo/router/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:713:30)
This error came from the "onResolve" callback registered here:
../../../node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-689425f3.js:39616:18:
39616 │ build.onResolve({
╵ ~~~~~~~~~
at setup (/home/scarf/repo/router/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-689425f3.js:39616:19)
at handlePlugins (/home/scarf/repo/router/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:855:23)
at Object.buildOrServe (/home/scarf/repo/router/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1149:7)
at /home/scarf/repo/router/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:2110:17
at new Promise (<anonymous>)
at Object.build (/home/scarf/repo/router/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:2109:14)
at Object.build (/home/scarf/repo/router/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1956:51)
at /home/scarf/repo/router/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-689425f3.js:39414:54
at Array.map (<anonymous>)
The plugin "vite:dep-scan" was triggered by this import
src/main.tsx:9:7:
9 │ } from '@tanstack/react-router'
╵ ~~~~~~~~~~~~~~~~~~~~~~~~
Build failed with 1 error:
../../../node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-689425f3.js:40970:10: ERROR: [plugin: vite:dep-scan] Failed to resolve entry for package "@tanstack/react-router". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "@tanstack/react-router". The package may have incorrect main/module/exports specified in its package.json.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It isn't clear how the project structure is, and what is the preferred way to run the
examples/react
directories. apparently it uses workspace features but when I try to run them I getBeta Was this translation helpful? Give feedback.
All reactions