-
Notifications
You must be signed in to change notification settings - Fork 86
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
ERROR: No matching export in "node_modules/.pnpm/three@0.142.0/node_modules/three/build/three.module.js" for import "Mapping" #143
Comments
@Dueel was not able to reproduce on https://github.com/Hacksore/pnpm-skinview3d Can you please how to reproduce this? |
Oh that is strange, have you tried using it in a dev environment? Well here is a step by step explanation of what I did:
<main>
<canvas id="skin_container"></canvas>
<skin-model></skin-model>
</main>
<script>
import * as skinview3d from 'skinview3d'
class Canvas extends HTMLElement {
constructor() {
super();
let skinViewer = new skinview3d.SkinViewer({
canvas: document.getElementById("skin_container") as HTMLCanvasElement,
width: 300,
height: 400,
skin: `https://textures.minecraft.net/texture/dbd7be81e45b8176fb12413204ec57bd0c8c00d369515ffda766aa72e5f72923`,
});
skinViewer.animation = new skinview3d.WalkingAnimation();
skinViewer.animation.headBobbing = false;
skinViewer.animation.speed = 0.7;
}
}
customElements.define('skin-model', Canvas);
</script>
|
Seems like a dev environment issue as once I build the project it runs, problem is it works fine in a dev environment on 3.0.0-alpha.1 |
Ok am able to reproduce in the astro dev server but not when building and running the production build. Will investigate this and report back. |
What a strange issue, thank you for looking into it! |
I have the same error I managed to get round it by using the built js instead of the ts |
This workaround seems to work but feels a tad bit slower. This will do for now though, thanks! Edit: I am making this website using typescript only and doing |
Hey there, first time trying skinview3d and when installing the latest version I get this error:
For now I switched to 3.0.0-alpha.1 but I am wondering why this occurs.
The text was updated successfully, but these errors were encountered: