Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Unable to resolve @storybook/builder-vite 'get-intrinsic' package #29115

Open
Sumit-Sahni opened this issue Sep 13, 2024 · 0 comments
Open

Comments

@Sumit-Sahni
Copy link

Describe the bug

Error Log

Sourcemap for "/virtual:/@storybook/builder-vite/setup-addons.js" points to missing source files
✘ [ERROR] Failed to resolve entry for package "get-intrinsic". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-pre-bundle]

    ../../../../node_modules/side-channel/index.js:3:27:
      3 │ var GetIntrinsic = require('get-intrinsic');
        ╵                            ~~~~~~~~~~~~~~~

Sourcemap for "/virtual:/@storybook/builder-vite/vite-app.js" points to missing source files
✘ [ERROR] Failed to resolve entry for package "get-intrinsic". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-pre-bundle]

    ../../../../node_modules/call-bind/callBound.js:3:27:
      3 │ var GetIntrinsic = require('get-intrinsic');
        ╵                            ~~~~~~~~~~~~~~~

✘ [ERROR] Failed to resolve entry for package "get-intrinsic". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-pre-bundle]

    ../../../../node_modules/call-bind/index.js:4:27:
      4 │ var GetIntrinsic = require('get-intrinsic');
        ╵                            ~~~~~~~~~~~~~~~

Unhandled promise rejection: Error: Build failed with 3 errors:
../../../../node_modules/call-bind/callBound.js:3:27: ERROR: [plugin: vite:dep-pre-bundle] Failed to resolve entry for package "get-intrinsic". The package may have incorrect main/module/exports specified in its package.json.
../../../../node_modules/call-bind/index.js:4:27: ERROR: [plugin: vite:dep-pre-bundle] Failed to resolve entry for package "get-intrinsic". The package may have incorrect main/module/exports specified in its package.json.
../../../../node_modules/side-channel/index.js:3:27: ERROR: [plugin: vite:dep-pre-bundle] Failed to resolve entry for package "get-intrinsic". The package may have incorrect main/module/exports specified in its package.json.
    at failureErrorWithLog (C:\Users\SUMIT SAHNI\OneDrive\Desktop\Big_Error\ec-ui-library\node_modules\.pnpm\[email protected]\node_modules\esbuild\lib\main.js:1472:15)      
    at C:\Users\SUMIT SAHNI\OneDrive\Desktop\Big_Error\ec-ui-library\node_modules\.pnpm\[email protected]\node_modules\esbuild\lib\main.js:945:25
    at C:\Users\SUMIT SAHNI\OneDrive\Desktop\Big_Error\ec-ui-library\node_modules\.pnpm\[email protected]\node_modules\esbuild\lib\main.js:1353:9
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  errors: [Getter/Setter],
  warnings: [Getter/Setter]
}

Reproduction link

https://github.com/Engineers-Cradle/ec-ui-library

Reproduction steps

  1. clone the repository
  2. install dependencies using pnpm i
  3. run storybook in development mode using pnpm run storybook

System

Storybook Environment Info:

  System:
    OS: Windows 11 10.0.22631
    CPU: (8) x64 Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
  Binaries:
    Node: 20.17.0 - C:\Program Files\nodejs\node.EXE
    npm: 9.5.1 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.10.0 - ~\AppData\Local\pnpm\pnpm.EXE <----- active
  Browsers:
    Edge: Chromium (127.0.2651.74)
  npmPackages:
    @storybook/addon-essentials: ^8.2.9 => 8.2.9
    @storybook/addon-interactions: ^8.2.9 => 8.2.9
    @storybook/addon-links: ^8.2.9 => 8.2.9
    @storybook/addon-onboarding: ^8.2.9 => 8.2.9
    @storybook/blocks: ^8.2.9 => 8.2.9
    @storybook/react: ^8.2.9 => 8.2.9
    @storybook/react-vite: ^8.2.9 => 8.2.9
    @storybook/test: ^8.2.9 => 8.2.9
    eslint-plugin-storybook: ^0.8.0 => 0.8.0
    storybook: ^8.2.9 => 8.2.9

Additional context

No response

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

No branches or pull requests

1 participant