storybookjs/storybook

[Bug]: (0 , _stencil_core__WEBPACK_IMPORTED_MODULE_0__.Component) is not a function

Open

#22,834 opened on May 29, 2023

View on GitHub
 (0 comments) (0 reactions) (0 assignees)TypeScript (10,058 forks)batch import
bugbuilder-webpack5help wantedstencilweb-componentswindows

Repository metrics

Stars
 (89,909 stars)
PR merge metrics
 (Avg merge 7d 22h) (184 merged PRs in 30d)

Description

Describe the bug

I am getting an error message when clicking on a story in storybook. From all indications this import of Component from @stencil-core is valid. Please see the screen shot. stencil_core-Component-is-not-a-function

To Reproduce

The company I work for does not allow sharing of their applications. But, I will share as much of the relevant code as what is possible to solve the problem.

stencil config

preview

custom-elements-json

System

Environment Info:

  System:
    OS: Windows 10 10.0.22621
    CPU: (12) x64 12th Gen Intel(R) Core(TM) i7-1255U
  Binaries:
    Node: 18.16.0 - C:\Program Files\nodejs\node.EXE
    npm: 9.6.6 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22621.1702.0), Chromium (113.0.1774.57)

Additional context

No response

Contributor guide