Skip to content

Can't run pnpm dev:playground Failed to resolve entry for package "@spotlightjs/sidecar". #220

@bruno-garcia

Description

@bruno-garcia

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/astro-playground@0.0.0 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/vite@4.5.0/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:28725:11)
    at resolvePackageEntry (file:///Users/bruno/git/spotlight/node_modules/.pnpm/vite@4.5.0/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:28722:5)
    at tryNodeResolve (file:///Users/bruno/git/spotlight/node_modules/.pnpm/vite@4.5.0/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:28453:20)
    at Context.resolveId (file:///Users/bruno/git/spotlight/node_modules/.pnpm/vite@4.5.0/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:28212:28)
    at Object.resolveId (file:///Users/bruno/git/spotlight/node_modules/.pnpm/vite@4.5.0/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/vite@4.5.0/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:43992:23)
    at async normalizeUrl (file:///Users/bruno/git/spotlight/node_modules/.pnpm/vite@4.5.0/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:41836:34)
    at async file:///Users/bruno/git/spotlight/node_modules/.pnpm/vite@4.5.0/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/vite@4.5.0/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:28725:11)
    at resolvePackageEntry (file:///Users/bruno/git/spotlight/node_modules/.pnpm/vite@4.5.0/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:28722:5)
    at tryNodeResolve (file:///Users/bruno/git/spotlight/node_modules/.pnpm/vite@4.5.0/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:28453:20)
    at Context.resolveId (file:///Users/bruno/git/spotlight/node_modules/.pnpm/vite@4.5.0/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:28212:28)
    at Object.resolveId (file:///Users/bruno/git/spotlight/node_modules/.pnpm/vite@4.5.0/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/vite@4.5.0/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:43992:23)
    at async normalizeUrl (file:///Users/bruno/git/spotlight/node_modules/.pnpm/vite@4.5.0/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:41836:34)
    at async file:///Users/bruno/git/spotlight/node_modules/.pnpm/vite@4.5.0/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/astro-playground@0.0.0 dev: `astro dev`
Exit status 1
 ELIFECYCLE  Command failed with exit code 1.
bruno@DHPKTVF22X spotlight %

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions