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]: Cannot use external modules as constructor parameter default values #6230

Closed
leewhite97 opened this issue Apr 15, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@leewhite97
Copy link

System Info

Rspack:0.6.1

Details

code:
image

output:
image

This problem occurs in the latest version

Reproduce link

https://github.com/leewhite97/rspack-project

Reproduce Steps

1.run pnpm dev
2.error:Uncaught ReferenceError: React is not defined

@leewhite97 leewhite97 added bug Something isn't working pending triage The issue/PR is currently untouched. labels Apr 15, 2024
@xc2
Copy link
Collaborator

xc2 commented Apr 15, 2024

should have been fixed in #6198

please try out the nightly version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants