Open ZYanan0129 opened 1 day ago
Can you provide the complete code in your picture so that we can determine exactly which character generation error caused it? A repro will be better
The first picture is source code from @rspack/cli,and the code marked in red blocks the application build.
return "js\" + chunkId + ".chunk.js";
Our output configuration code is output: { filename: path.join('./', 'js/[name].[chunkhash:8].js'), chunkFilename: path.join('./', 'js/[name].[chunkhash:8].chunk.js'), }
We guess whether it is related to the Windows system path translation.
Thanks ~~
System Info
System: Windows 10 CPU Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz 1.90 GHz Binaries: node 16.18.1 npm 8.19.2 Browsers: chrome 131.0.6778.70 npmPackages: @rspack/cli: 1.1.2 @rspack/core: 1.1.2
Details
Hello, the same configuration in the project can be built successfully and started on macOS, but it fails to build and start on Windows. The error message located can be referenced as follows: This application used to be built using webpack,could start normally on both macOS and windows systems. Thanks ~~
Reproduce link
No response
Reproduce Steps
The output configuration information is as follows:
output: { filename: path.join('./', 'js/[name].[chunkhash:8].js'), chunkFilename: path.join('./', 'js/[name].[chunkhash:8].chunk.js'), }
Thanks ~~