-
-
Notifications
You must be signed in to change notification settings - Fork 90
Open
Description
Version
System:
OS: macOS 15.6
CPU: (14) arm64 Apple M4 Pro
Memory: 5.83 GB / 24.00 GB
Shell: 3.2.57 - /bin/bash
Browsers:
Chrome: 139.0.7258.66
Safari: 18.6
devDependencies:
@rsdoctor/rspack-plugin 1.2.1
@rspack/cli 1.4.11
@rspack/core 1.4.11
Node v22.17.1Details
Trying to run rsdoctor and getting OOM errors and/or RangeError: Maximum call stack size exceeded errors. Additionally, the build seems to not finish, or not finish completely (not sure).
At times I can load the report page and it will show these errors:
ERROR × Module build failed:
╰─▶ × × Module build failed:
│ ╰─▶ × RangeError: Maximum call stack size exceeded
│ │ at /Users/morgan/code/vortex-app/frontend/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]/node_modules/@rsdoctor/sdk/dist/cjs/sdk/sdk/index.js:217:42
│ │ at Array.forEach (<anonymous>)
│ │ at RsdoctorSDK.reportLoader (/Users/morgan/code/vortex-app/frontend/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]/node_modules/@rsdoctor/sdk/dist/cjs/sdk/sdk/index.js:210:18)
│ │ at RsdoctorSDK.reportLoaderStartOrEnd (/Users/morgan/code/vortex-app/frontend/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]/node_modules/@rsdoctor/sdk/dist/cjs/sdk/sdk/index.js:242:26)
│ │ at Object.loaderModule (/Users/morgan/code/vortex-app/frontend/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]/node_modules/@rsdoctor/core/dist/build-utils/build/loader/probeLoader.js:78:9)
│ │ at /Users/morgan/code/vortex-app/frontend/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rspack/core/dist/index.js:3050:29
│ │ at node:internal/util:472:21
│ │ at new Promise (<anonymous>)
│ │ at node:internal/util:458:12
│ │ at isomorphoicRun (/Users/morgan/code/vortex-app/frontend/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rspack/core/dist/index.js:3549:244)
I use the builtin:swc-loader like this:
{
test: /\.m?[jt]sx?$/,
exclude: /node_modules/,
loader: 'builtin:swc-loader',
options: {
jsc: {
parser: {
syntax: 'typescript',
jsx: true,
decorators: true,
decoratorsBeforeExport: true,
dynamicImport: true,
},
transform: {
legacyDecorator: true,
decoratorMetadata: false,
useDefineForClassFields: false,
react: {
runtime: 'automatic',
},
},
},
env: {
targets: pkg.browserslist,
},
},
}I use the rsdoctor plugin like this:
import {RsdoctorRspackPlugin} from '@rsdoctor/rspack-plugin';
new RsdoctorRspackPlugin({
port: 8081,
})
<img width="1679" height="851" alt="Image" src="https://github.com/user-attachments/assets/51bd26a0-dc6c-40e2-87d8-281d625b3355" />With the Activity Monitor app open I can see the memory increase for the rspack-node process. The build runs fine without using rsdoctor.
Possibly related to #1080
Reproduce link
N/A
Reproduce Steps
I don't have a repro link or example as this is a private project for work. This error did not occur before switching over to builtin:swc-loader. Before we were using esbuild-loader.
Metadata
Metadata
Assignees
Labels
No labels