I used babylon,js in my Wechat Game. Simple sample with simple babylon.js is ok! when i used lib downloaded in complex sample. it is ok in browser, only in wechat environment it is wrong! pls help me!
share and screenshot from what you do
Did you check this?
https://doc.babylonjs.com/features/npm_support
I don’t know WeChat environment but there must be a config issue for sure. How do you bundle? Using webpack?
1 Like
Looks like it is using amd and without config will go for loading file moduleName + js, you can either rename babylon.js to babylonjs.js or use a special config:
require.config({
paths: {
‘babylonjs’: ‘./js/libs/babylon’
}
});
and require(‘babylonjs’)
I guess
你解决了吗,大兄弟