Subscribe on changes!

@vue/compiler-sfc 单独在vscode插件中使用时,无法正确打包

avatar
Feb 4th 2024

Vue version

3.4.15

Link to minimal reproduction

Steps to reproduce

打包

What is expected?

打包

What is actually happening?

ERROR in ./node_modules/.pnpm/@vue+compiler-sfc@3.4.15/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js 4147:54-70 Module not found: Error: Can't resolve 'twing' in '**/*/node_modules/.pnpm/@vue+compiler-sfc@3.4.15/node_modules/@vue/compiler-sfc/dist'

类似错误 出现了35次

System Info

No response

Any additional comments?

No response

avatar
Feb 5th 2024

did u find any resolutions? i meet the same problem

avatar
Feb 6th 2024

did u find any resolutions? i meet the same problem

use

import { parse, compileScript } from "@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js";