Using mathmesh with TypeScript, Babylon.js, and Vite

Hello everyone,

I recently came across mathmesh on the forum and found it intriguing for displaying mathematics in Babylon.js. However, when attempting to integrate it into my TypeScript project with Vite, I encountered an error due to MathMesh being a deprecated JavaScript module.

Has anyone successfully used MathMesh with TypeScript and Babylon.js? If so, could you please share your approach or any alternative solutions you’ve found to efficiently display mathematical symbols and equations in a Babylon.js environment?

Thank you!

Hey,

want to share a simple project showing the issue? maybe we can get it to work with you :slight_smile:

1 Like

hello!

I put together a simple demo with Vite + React + TypeScript + Babylon + Mathmesh
in the following repo, hope that helps

4 Likes

amazing, thanks for sharing :slight_smile:

2 Likes

Here’s a response in English that you can use to reply to the forum member:


Hey,

I don’t have a project to share because I just did a quick test. I installed mathmesh via npm and tried running the example from the main page, and that’s when I encountered the error.

Hello!

Thank you so much for putting together the demo. I will test it out soon. Also, thank you for developing this tool—it’s really helpful!

1 Like