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]: Output contains a __webpack_require__(null) call which causes a crash #7133

Closed
LinusCenterstrom opened this issue Jul 12, 2024 · 2 comments
Assignees
Labels
bug Something isn't working pending triage The issue/PR is currently untouched.

Comments

@LinusCenterstrom
Copy link

LinusCenterstrom commented Jul 12, 2024

System Info

System:
OS: Windows 11 10.0.22631
CPU: (32) x64 13th Gen Intel(R) Core(TM) i9-13900K
Memory: 10.50 GB / 63.58 GB
Binaries:
Node: 18.18.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 9.8.1 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Chromium (126.0.2592.87)
Internet Explorer: 11.0.22621.3527

Details

The output code contains a call to webpack_require with null as a parameter.
This causes a crash at runtime.
I'm not quite sure what in causes it exactly, but the linked repo is a minimal repro that does have the bug.

Reproduce link

https://github.com/LinusCenterstrom/rspack-repro-buildfail/tree/ca99fd0119fa67ba3165d5b868707390ea1fbff8

Reproduce Steps

yarn install
yarn build
check outputfile index.js in the dist folder

@LinusCenterstrom LinusCenterstrom added bug Something isn't working pending triage The issue/PR is currently untouched. labels Jul 12, 2024
@JSerFeng JSerFeng self-assigned this Jul 12, 2024
@ahabhgk
Copy link
Collaborator

ahabhgk commented Jul 19, 2024

Fixed by #7212, could you checkout if it still exists in nightly version 1.0.0-canary-b3bac1b-20240719023634

@ahabhgk ahabhgk closed this as completed Jul 19, 2024
@LinusCenterstrom
Copy link
Author

That seems to have fixed it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending triage The issue/PR is currently untouched.
Projects
None yet
Development

No branches or pull requests

3 participants