Skip to content

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

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

Merged
merged 3 commits into from
Aug 30, 2024

Conversation

AriPerkkio
Copy link
Member

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.

Copy link

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

@AriPerkkio AriPerkkio requested a review from Nemikolh August 30, 2024 06:12
@AriPerkkio
Copy link
Member Author

/pkg-pr-new

Copy link
Member

@Nemikolh Nemikolh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice workaround! 😃 Hopefully this gets fixed upstream.

@AriPerkkio AriPerkkio merged commit 70fa3e2 into stackblitz:main Aug 30, 2024
10 checks passed
@AriPerkkio AriPerkkio deleted the fix/ref-error-in-dev-mode branch August 30, 2024 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ReferenceError: __WC_CONFIG__ is not defined
2 participants