Does rspack have a max file path name size for compiling node modules? #6966
-
Not sure if this is a bug or a side effect of Rust but I'm encountering a compilation error and I'm 99% sure it's because the file path of the module index file is too long. I'm in the process of converting a react (18.2.0) webpack project to rspack and when I try to build it, I'm getting the following error in the console:
Since this is a company project, I don't want to show the full file path, but it's 297 characters. Since it's locked to source control, moving the project closer to the root is not an option. Here's the relevant part of the file path with my company name excluded: \\?\C:\...\ClientApp\node_modules\.pnpm\@********[email protected][email protected][email protected][email protected][email protected][email protected]_\node_modules@********\use-federated-component\dist\esm\index.js I'm wondering if there's a max file path size for rspack to compile? Does rspack have a method to allow these to compile or am I just out of luck? Edit: I should note the reason I think this is a file path issue is because there were two errors, but I shortened the branch name and that got rid of one of the errors because the file path went below 255 characters. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Woud you please add |
Beta Was this translation helpful? Give feedback.
Woud you please add
node-linker=hoisted
to.npmrc
to see if the problem dismissed?