javascript - cannot import some packages on android, but on ios, it's ok -
i'm developing game cocos2d-js , browserify.
but wrote on title, require("stream")
not work on android.
it's work on ios....
here debug info
{ gl.supports_vertex_array_object: true gl.supports_bgra8888: false gl.supports_atitc: false gl.supports_s3tc: false cocos2d.x.version: cocos2d-x 3.4 gl.supports_discard_framebuffer: true cocos2d.x.compiled_with_profiler: false gl.supports_pvrtc: false cocos2d.x.build_type: debug gl.renderer: mali-t760 gl.supports_etc1: true cocos2d.x.compiled_with_gl_state_cache: true gl.version: opengl es 3.1 v1.r7p0-03rel0.b596bd02e7d0169c10574b57180c8b57 gl.supports_npot: true gl.max_texture_units: 96 gl.vendor: arm gl.max_texture_size: 8192 }
and want run script : https://gist.github.com/growingdever/75dc2bb9e52a1bfdb57279c33add42cc
the version of spidermonkey(javascript engine of cocos2d-x) 34.
i tried changing min version or target version of android sdk 19, didn't work also.
** project works packages such underscore, async, , on. experience, cannot import event-stream , dnode. there more packages cannot import. "stream" package required event-stream
use browserify@~4
i used browserify 13.0.1, not seem work cocos2d-js android.
Comments
Post a Comment