web-infra-dev / rsbuild

The Rspack-based build tool. It's fast, out-of-the-box and extensible.
https://rsbuild.dev/
MIT License
1.88k stars 144 forks source link

[Bug]: vue2.7 @rsbuild/core: ^1.1.6 => 1.1.6 @rsbuild/plugin-vue2: ^1.0.2 => 1.0.2 #4071

Open github1586 opened 3 days ago

github1586 commented 3 days ago

Version

System:
    OS: macOS 14.6.1
    CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
    Memory: 1.42 GB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Safari: 17.6
  npmPackages:
    @rsbuild/core: ^1.1.6 => 1.1.6 
    @rsbuild/plugin-babel: ^1.0.3 => 1.0.3 
    @rsbuild/plugin-vue2: ^1.0.2 => 1.0.2 

  × ModuleError: (Emitted value instead of an instance of Error)
  │ 
  │   Errors compiling template:
  │ 
  │   Component template requires a root element, rather than just text.
  │ 
  │   1  |  var render = function () {}
  │      |  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  │   2  |  var staticRenderFns = []
  │      |  ^^^^^^^^^^^^^^^^^^^^^^^^
  │   3  |
  │      |
  │   4  |  export { render, staticRenderFns }

Details

× ModuleError: (Emitted value instead of an instance of Error) │ │ Errors compiling template: │ │ Component template requires a root element, rather than just text. │ │ 1 | var render = function () {} │ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ │ 2 | var staticRenderFns = [] │ | ^^^^^^^^^^^^^^^^^^^^^^^^ │ 3 | │ | │ 4 | export { render, staticRenderFns }

Reproduce link

no demo

Reproduce Steps

× ModuleError: (Emitted value instead of an instance of Error) │ │ Errors compiling template: │ │ Component template requires a root element, rather than just text. │ │ 1 | var render = function () {} │ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ │ 2 | var staticRenderFns = [] │ | ^^^^^^^^^^^^^^^^^^^^^^^^ │ 3 | │ | │ 4 | export { render, staticRenderFns }

github-actions[bot] commented 3 days ago

Hello @github1586. Please provide a reproduction repository or online demo. For background, see Why reproductions are required. Thanks ❤️