Skip to content

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

Closed

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/[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 %

Activity

  1. Shubhdeep12 commented on Dec 5, 2023

    @Shubhdeep12
    Contributor

    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.

  2. bruno-garcia commented on Dec 13, 2023

    @bruno-garcia
    MemberAuthor

    Just tried again and worked fine.

  3. BYK commented on Jun 13, 2024

    @BYK
    Member

    This is because we need an initial pnpm build to get it built. Will add this to the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions