You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use TypeScript in Vue SFC with Webpack, but I get a compilation error after setting lang="ts":
File was processed with these loaders:
* ./node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/vue-loader/dist/templateLoader.js
* ./node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/vue-loader/dist/index.js
You may need an additional loader to handle the result of these loaders.
| import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue"
|
> const _withScopeId = (n: any) => (_pushScopeId("data-v-7ba5bd90"),n=n(),_popScopeId(),n)
| const _hoisted_1 = { class: "content" }
| const _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode("h1", null, "Rsbuild with Vue", -1 /* HOISTED */))
FlowingPond
changed the title
[Bug]: Webpack build fail when set lang to "ts" in vue SFC
[Bug]: Webpack build fails when lang is set to "ts" in SFC
Jul 15, 2024
Version
Details
I want to use TypeScript in Vue SFC with Webpack, but I get a compilation error after setting lang="ts":
Reproduce link
https://github.com/FlowingPond/rsbuild-webpack-vue-ts
Reproduce Steps
pnpm i
pnpm dev
The text was updated successfully, but these errors were encountered: