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
[plugin:vite:import-analysis] Failed to resolve entry for package "@pixiv/types-vrm-0.0". The package may have incorrect main/module/exports specified in its package.json.
I have been using "@pixiv/three-vrm": "^2.0.2", and installed "@pixiv/types-vrmc-vrm-1.0": "^2.0.2", when i try to import as mentioned in migration guide i get above .
What i have been trying is lip and facial expression of VRM model loaded.
Any help would be appreciated.
Thanks in advance
The text was updated successfully, but these errors were encountered:
Hi, sorry for the late response. I've tried the latest version of vite and can only reproduce your error if trying to import @pixiv/types-vrmc-vrm-1.0 as value. Please note any packages start with @pixiv/types-vrmc- are type only packages, i.e., should be only imported and used as types.
For example, import type will work,
// this is okimporttype*asV1VRMSchemafrom'@pixiv/types-vrmc-vrm-1.0';
but if you are trying to use imported type as value, the Failed to resolve entry error will happen.
// this is not okimport*asV1VRMSchemaAsSomeValuefrom'@pixiv/types-vrmc-vrm-1.0';console.log(V1VRMSchemaAsSomeValue)
In the situation you are not using typescript, it's possible to use these packages as following in doc comments.
Hello, i have getting following error
I have been using "@pixiv/three-vrm": "^2.0.2", and installed "@pixiv/types-vrmc-vrm-1.0": "^2.0.2", when i try to import as mentioned in migration guide i get above .
What i have been trying is lip and facial expression of VRM model loaded.
Any help would be appreciated.
Thanks in advance
The text was updated successfully, but these errors were encountered: