We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
System: OS: macOS 14.5 CPU: (10) arm64 Apple M1 Pro Memory: 1.29 GB / 16.00 GB Shell: 5.9 - /bin/zsh Browsers: Safari: 17.5 npmPackages: @rsbuild/core: 1.0.1 => 1.0.1 @rsbuild/plugin-less: 1.0.1 => 1.0.1 @rsbuild/plugin-react: 1.0.1 => 1.0.1 @rsbuild/plugin-svgr: 1.0.1 => 1.0.1
// rsbuild.config.ts import { defineConfig } from '@rsbuild/core'; import { pluginLess } from '@rsbuild/plugin-less'; import { pluginReact } from '@rsbuild/plugin-react'; import { pluginSvgr } from '@rsbuild/plugin-svgr'; export default defineConfig({ plugins: [pluginReact(), pluginSvgr(), pluginLess()], tools: { rspack: { node: { global: true, }, }, }, });
// App.tsx import process from 'node:process'; console.log(process.env.DEV);
I get error:
See codes above
The text was updated successfully, but these errors were encountered:
API from node cannot be used in the browser environment
Sorry, something went wrong.
@SoonIter
If so, what's the point of turning on polyfills for Node?
Try this plugin: https://github.com/rspack-contrib/rsbuild-plugin-node-polyfill
node:
chenjiahan
Successfully merging a pull request may close this issue.
Version
Details
I get error:
Reproduce link
See codes above
Reproduce Steps
See codes above
The text was updated successfully, but these errors were encountered: