Closed girishvisaero closed 1 month ago
Hello @girishvisaero. Please provide a reproduction repository or online demo. For background, see Why reproductions are required. Thanks ❤️
Hai @chenjiahan ,I noticed that, too. The exception message was ReferenceError: process is not defined
Here's reproduction
The steps :
1: pnpm devScript
You can find err be log
But, When you set mode
be development
in scripts/dev.js
, Running fine,
I think the reason is that process.env is not Defined
Do you have any suggestions that you can give me so that I can help solve the problem
This is a bug of Rsbuild's default mode
, I will fix it
Hai @girishvisaero , You can try to do it, Then tell us the result
Sure I am gonna try it again. With the latest Rsbuild version, actually I was green harmony link error and crypto errors. It was working perfectly with an old build of rsbuild but the current version I think there are some changes breaking my it.
Try the new release: https://github.com/web-infra-dev/rsbuild/releases/tag/v1.0.1-beta.14
Version
Details
Description: After upgrading our project to use rsbuild and plugin-react version 1.0.1-beta.13, the build process crashes and fails to run correctly. In contrast, the project works as expected with rsbuild and plugin-react version 1.0.1-beta.11. This issue is critical as it impacts the production build process for our React 16 application.
Expected Behavior: The project should build and run successfully with rsbuild and plugin-react version 1.0.1-beta.13, similar to how it works with version 1.0.1-beta.11.
Actual Behavior: The project crashes or fails to build correctly when using rsbuild and plugin-react version 1.0.1-beta.13. The specific errors or issues encountered prevent the application from running properly.
Reproduce link
-
Reproduce Steps