Thanks for writing this guide! I tried creating a demo app with it and it works in development mode.
The only problem is that the build doesn't seem to work. I'm getting this error when compiling in mac:
I used the following command to compile: yarn electron-webpack && yarn electron-builder --dir -c.compression=store -c.mac.identity=null
yarn electron-webpack && yarn electron-builder --dir -c.compression=store -c.mac.identity=null
There were no errors in the compilation process. My babel.config.js looks like:
babel.config.js
module.exports = function(api) { api.cache(true); return { presets: ['babel-preset-expo', 'module:metro-react-native-babel-preset', 'module:react-native-dotenv'], }; };
any ideas why this is? does babel-preset-expo support global module imports?
babel-preset-expo
again, thank you for this. I'll continue trying to figure out what's wrong.
@Wern, I have same issue. Did you find any solutions?
Hi, there.
I'm getting a similar error. I've been trying to fix it by changing the syntax for that line from 'import from ...' to 'require('....')'.
It "worked" in the way that the error moved to the next "import" statement. Is ES6 not working on the build?
Tried using other babel presets (babel/env, babel-react, etc...). With these ones, not even the building finishes.
Can't find any solution
Any answer on the subject, I have the same problem, a build example would be welcome.
Any luck to create build for electron?
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for writing this guide!
I tried creating a demo app with it and it works in development mode.
The only problem is that the build doesn't seem to work.
I'm getting this error when compiling in mac:
I used the following command to compile:
yarn electron-webpack && yarn electron-builder --dir -c.compression=store -c.mac.identity=null
There were no errors in the compilation process. My
babel.config.js
looks like:any ideas why this is? does
babel-preset-expo
support global module imports?again, thank you for this. I'll continue trying to figure out what's wrong.
@Wern, I have same issue. Did you find any solutions?
Hi, there.
I'm getting a similar error. I've been trying to fix it by changing the syntax for that line from 'import from ...' to 'require('....')'.
It "worked" in the way that the error moved to the next "import" statement.
Is ES6 not working on the build?
Tried using other babel presets (babel/env, babel-react, etc...). With these ones, not even the building finishes.
Can't find any solution
Any answer on the subject, I have the same problem, a build example would be welcome.
Any luck to create build for electron?