Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
monaca build does not compile jsx
coolman last edited by
I am new to onsen and monaca. I would like to try monaca + onsen ui + react. So I started to download Onsen UI V2 React Tabbar template with following command
$ monaca create helloworld
And I started to coding by changing
src/App.jsxfile and tested with
It worked as I wished. Than I wanted to install it to android phone. I build apk with following commands:
$ monaca platform add android
$ monaca build android
It generates an apk file but it does not reflect my code, it reflects only original template code. I noticed there is no change for
What’s wrong? Do I need to compile jsx file to
monaca previewis for development and loads everything in memory for faster debugging. If you want to test your app in real devices I’d recommend you using Monaca Debugger (and just run
monaca debugin the CLI). That will put all the transpiled files in the device and refresh the app whenever you modify your code. Otherwise, just run
monaca transpileto perform an actual transpilation of your coed and generate files.