question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v6 React Template / Babel Setup

See original GitHub issue
  • I have read the contribution documentation for this project.
  • [ x I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Please describe your issue:

Does v6 have a react template? appending --template=react to the beta cli init command failed to find one.

If there isn’t a react template yet, could I just get a bit of guidance on how to include babel transformations in the build process of electron-forge start?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
maleptcommented, Aug 17, 2018

v6 is going to do away with framework-based templates (partly because they’re a pain to upgrade) and move towards bundler-based templates (e.g., parcel or webpack). I have not tested this (and @MarshallOfSound can correct me) but ideally you should be able to use create-react-app and the webpack Electron Forge v6 plugin and it should all just work.

Incidentally, Electron Fiddle is a Forge v6 project that uses React and Parcel.

0reactions
MarshallOfSoundcommented, Sep 10, 2018

@audiolion If you want to use CRA you have to eject the config, we need those config files as we perform a similar role to CRA in that we call webpack directly ourselves

Read more comments on GitHub >

github_iconTop Results From Across the Web

Babel · The compiler for next generation JavaScript
4Create babel.config.json configuration file​​ Create a babel.config.json config in your project root and enable some presets.
Read more >
Setting up Webpack, Babel and React from scratch - Part 2
Create scss folder in the app folder, and main app.scss file in it. This file will include all of the other scss files....
Read more >
@babel/preset-react | Yarn - Package Manager
Babel preset for all React plugins. readme. babel. The compiler for writing next generation JavaScript. Gitpod ready-to-code. v7 npm Downloads v6 npm ...
Read more >
Requires Babel “7.0.0-0” but was loaded with “6.26.3” - GitHub
I have an unusual setup. Gems I use include react-rails and browserify-rails . When running yarn why babel-core (didn't know ...
Read more >
Installation and Setup | Relay
Version: v6.0.0 ... Install React and Relay using yarn or npm : ... The below configuration of babel-plugin-relay and relay-compiler can be ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found