stackblitz / tutorialkit

TutorialKit by StackBlitz - Create interactive tutorials powered by the WebContainer API
https://tutorialkit.dev
MIT License
507 stars 49 forks source link

fix(astro): work-around for dev-mode's `ReferenceError: __WC_CONFIG__ is not defined` errors #293

Closed AriPerkkio closed 2 months ago

AriPerkkio commented 2 months ago

As work-around for the upstream issue, let's convert this component into React component instead of Astro one. It's then loaded on client side after Vite's define is applied, it seems.

Note that the original bug is not visible when developing TutorialKit in the monorepo. It only appears in projects that are using the actual packages. Tested locally by linking packages with pnpm.

stackblitz[bot] commented 2 months ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

AriPerkkio commented 2 months ago

/pkg-pr-new