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
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Describe the bug
For example:
import { Pose } from "@mediapipe/pose"
const p = new Pose();
Will build to:
const p = new Gu.Pose();
It seems any package name containing a "/" will cause the building process to prepend a name to the new class constructor.
And it will cause TypeError: Gu.Pose is not a constructor.
My current workaround is to remove the name appending after the project is built.
"vite": "^2.9.2"
"vue": "^3.2.25"
Reproduction
https://github.com/ElementLi/vite-build-error
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: