-
Notifications
You must be signed in to change notification settings - Fork 131
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]: ReferenceError: Cannot access '__WEBPACK_DEFAULT_EXPORT__' before initialization in dev mode #2862
Comments
related to web-infra-dev/rspack#6861 Could you try to turn on this configuration?
If this does not solve this issue, please provide a reproduction repository. |
Thank you so much! |
Is this error expected to be happen? @ahabhgk can you check this |
Could you provide a minimal reproduce so I can debug further to fix the root issue here |
This is my company's private project, so I'll debug and create a minimal reproduction. However, after adding the following configuration: |
I will close this issue due to lack of reproduction. If anyone encountered the same issue, providing a reproduction will be very helpful for debugging. |
This problem is due to circular references, and it is not a rspack/webpack issue. In dev, Summary
This configuration will hide some potential runtime errors in the case of circular references. We should try our best to use some details and reproduction |
Version
Details
I'm facing an issue in development mode where everything works fine in version v7.0.10 and in build mode in the latest version. Essentially, index.js acts as a barrel file:
I don't know the reason for the issue yet, so I can't provide more details at the moment. I'll add more information once I identify the cause.
Reproduce link
no produce
Reproduce Steps
pnpm run dev
The text was updated successfully, but these errors were encountered: