Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
CCherry07 opened this issue Feb 4, 2024 · 2 comments
Closed

Comments

@CCherry07
Copy link

CCherry07 commented Feb 4, 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

@JohnSunHope
Copy link

did u find any resolutions? i meet the same problem

@CCherry07
Copy link
Author

did u find any resolutions? i meet the same problem

use

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

@github-actions github-actions bot locked and limited conversation to collaborators Feb 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants