Closed liyincode closed 4 months ago
node version: v20.11.0
I also encountered the same problem, node version is 18.19.1
@liyincode This bug has been fixed. I'll publish today. But rsdoctor's loader analysis not support vue-loader, other analysis functions can support. You can config rsdoctor plugin like following to close loader analysis: https://rsdoctor.dev/config/options/options#features
features: ["bundle", "plugins"]
You can use v0.1.4, but the loader analysis in the vue project is turned off by default, and you can pay attention to this issue #20 https://rsdoctor.dev/guide/start/quick-start#vue-framework
@easy1090 why rsdoctor cannot analysis vue-loader? What is the problem?
@easy1090 why rsdoctor cannot analysis vue-loader? What is the problem?
@OskarLebuda The analysis of the loader by rsdoctor adds a proxy loader, which wraps the real original loader. The vue-loader makes some reference modifications in the vue loader pitch to allow Vue files to also go through loaders for other file extensions to ensure compatibility with SFC. However, this part is currently not supported by the rsdoctor proxy loader, and there will be errors. But recently, work is being done to make rsdoctor compatible with vue-loader, so you can check on that.:#467
Version
Details
I created the vue2 project using
pnpm create rsbuild@latest
, thenpnpm add @rsdoctor/rspack-plugin -D
to add the rsdoctor, setRSDOCTOR=true
in the .env file, and thennpm run dev
, and see this errorI wondered if it was a vue2 issue, then I created a vue3 project via pnpm create rsbuild@latest, then installed rsdoctor via the above steps and ran it, and the error was exactly the same as above.
Reproduce link
none
Reproduce Steps