Repository navigation
Closed
Description
Steps to repro (at sha: 2e2d8ff):
git clone https://github.com/getsentry/spotlight.git
volta install node pnpm
pnpm install
pnpm dev:playground
Error:
bruno@DHPKTVF22X spotlight % pnpm dev:playground
> @ dev:playground /Users/bruno/git/spotlight
> pnpm --filter astro-playground dev
> @spotlightjs/[email protected] dev /Users/bruno/git/spotlight/demos/astro-playground
> astro dev
Failed to resolve entry for package "@spotlightjs/sidecar". The package may have incorrect main/module/exports specified in its package.json.
11:18:24 p.m. [vite] Error when evaluating SSR module /Users/bruno/git/spotlight/demos/astro-playground/astro.config.mjs: failed to import "/@fs/Users/bruno/git/spotlight/packages/astro/src/index.ts"
|- Error: Failed to resolve entry for package "@spotlightjs/sidecar". The package may have incorrect main/module/exports specified in its package.json.
at packageEntryFailure (file:///Users/bruno/git/spotlight/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:28725:11)
at resolvePackageEntry (file:///Users/bruno/git/spotlight/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:28722:5)
at tryNodeResolve (file:///Users/bruno/git/spotlight/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:28453:20)
at Context.resolveId (file:///Users/bruno/git/spotlight/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:28212:28)
at Object.resolveId (file:///Users/bruno/git/spotlight/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:44276:64)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async TransformContext.resolve (file:///Users/bruno/git/spotlight/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:43992:23)
at async normalizeUrl (file:///Users/bruno/git/spotlight/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:41836:34)
at async file:///Users/bruno/git/spotlight/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:41998:47
at async Promise.all (index 7)
[astro] Unable to load your Astro config
error Failed to resolve entry for package "@spotlightjs/sidecar". The package may have incorrect main/module/exports specified in its package.json.
File:
/Users/bruno/git/spotlight/packages/astro/src/index.ts
Stacktrace:
Error: Failed to resolve entry for package "@spotlightjs/sidecar". The package may have incorrect main/module/exports specified in its package.json.
at packageEntryFailure (file:///Users/bruno/git/spotlight/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:28725:11)
at resolvePackageEntry (file:///Users/bruno/git/spotlight/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:28722:5)
at tryNodeResolve (file:///Users/bruno/git/spotlight/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:28453:20)
at Context.resolveId (file:///Users/bruno/git/spotlight/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:28212:28)
at Object.resolveId (file:///Users/bruno/git/spotlight/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:44276:64)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async TransformContext.resolve (file:///Users/bruno/git/spotlight/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:43992:23)
at async normalizeUrl (file:///Users/bruno/git/spotlight/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:41836:34)
at async file:///Users/bruno/git/spotlight/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:41998:47
at async Promise.all (index 7)
/Users/bruno/git/spotlight/demos/astro-playground:
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL @spotlightjs/[email protected] dev: `astro dev`
Exit status 1
ELIFECYCLE Command failed with exit code 1.
bruno@DHPKTVF22X spotlight %
Metadata
Metadata
Assignees
Labels
No labels
Activity
Shubhdeep12 commentedon Dec 5, 2023
Hi @bruno-garcia can try building the sidecar and overlay packages first and then running this command (
pnpm dev:playground)I think this will resolve the error.
bruno-garcia commentedon Dec 13, 2023
Just tried again and worked fine.
BYK commentedon Jun 13, 2024
This is because we need an initial
pnpm buildto get it built. Will add this to the docs.