Skip to content

[Bug]: vue2 project configuration devtool: 'source-map', error message cannot locate the source file #9557

@zzccty

Description

@zzccty

System Info

System:
OS: Windows 11 10.0.26100
CPU: (16) x64 AMD Ryzen 7 5800H with Radeon Graphics
Memory: 3.12 GB / 15.36 GB
Binaries:
Node: 18.18.0 - C:\nvm4w\nodejs\node.EXE
npm: 9.8.1 - C:\nvm4w\nodejs\npm.CMD
pnpm: 10.5.2 - ~\AppData\Local\nvm\node_global\pnpm.CMD
Browsers:
Edge: Chromium (132.0.2957.115)
Internet Explorer: 11.0.26100.1882
npmPackages:
@rspack/cli: 1.2.6 => 1.2.6
@rspack/core: 1.2.6 => 1.2.6
css-loader: ^6.11.0 => 6.11.0
less: 4.2.2 => 4.2.2
less-loader: ^11.1.4 => 11.1.4
vue: 2.7.14 => 2.7.14
vue-loader: ^15.10.1 => 15.11.1
vue-style-loader: ^4.1.3 => 4.1.3

Details

I wrote an error code in the official sample (https://github.com/rspack-contrib/rstack-examples/tree/main/rspack/vue2-ts).

Image
and change the devtool in the rspack.config.js file to 'source-map',

Image

after that, I executed pnpm dev and found that the specified source code could not be located.

Image
using vue3 (https://github.com/rspack-contrib/rstack-examples/tree/main/rspack/vue) to make the same modification will not have this problem, and the specified source code can be located.

Reproduce link

No response

Reproduce Steps

Create an error in the official example
Change devtool in rspack.config.js from false to 'source-map'
pnpm dev

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions