Giter Site home page Giter Site logo

marceloaugusto80 / electron-react-typescript-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
36.0 36.0 8.0 2.31 MB

Boilerplate for Electron + React + Typescript + Fast-Refresh + Jest.

License: MIT License

TypeScript 97.74% HTML 2.26%
boilerplate customize electron fast-refresh filesystem from-scratch hot jest node pack react-fast-refresh react18 styled-components template ts-jest typescript typescript-boilerplate webpack-dev-server

electron-react-typescript-boilerplate's People

Contributors

dependabot[bot] avatar gabriel avatar marceloaugusto80 avatar vikubin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

electron-react-typescript-boilerplate's Issues

Use Assets (image, font)

Hello,

Thanks for this respository, I did not succeed to use assets (font or image) in the App.
Can you help me if you have some time ?

Thanks

Use react.i18next

First of all thanks for boilerplate

Describe the bug
When im trying to use react.i18next i got errors

To Reproduce
Steps to reproduce the behavior:

  1. git clone this repo
  2. npm i
  3. npm install react-i18next i18next
  4. create file in src i18n.ts
  5. put this in file
import i18n from "i18next";
import {initReactI18next} from "react-i18next";

i18n
    .use(initReactI18next) // passes i18n down to react-i18next
    .init({
        resources: {
            en: {
                translation: {
                    "Welcome to React": "Welcome to React and react-i18next"
                }
            }
        },
        lng: "en",
        fallbackLng: "en",

        interpolation: {
            escapeValue: false
        }
    });

  1. go to render-process.tsx
  2. type
    import './i18n'
  3. then try to start
  4. got errors in console

Screenshots
image

these steps i take from https://react.i18next.com/getting-started

repo with bug
https://github.com/JumpAttacker/TestElectron

npm start encounters error

Describe the bug
npm start encounters error

To Reproduce
Steps to reproduce the behavior:

  1. Clone the repository
  2. Run: 'npm install'
  3. Run: 'npm start'
  4. See error:
C:\Users\XXXXX\WEB_Sync\electron-react-typescript-boilerplate>npm start

> [email protected] start C:\Users\XXXXX\WEB_Sync\electron-react-typescript-boilerplate
> npx concurrently 'npm run start:server' 'npm run start:electron' --kill-others --kill-others-on-fail

[0] ''npm' is not recognized as an internal or external command,
[0] operable program or batch file.
[1] 'run' is not recognized as an internal or external command,
[1] operable program or batch file.
[3] ''npm' is not recognized as an internal or external command,
[3] operable program or batch file.
[4] 'run' is not recognized as an internal or external command,
[4] operable program or batch file.
[3] 'npm exited with code 1
--> Sending SIGTERM to other processes..
[1] run exited with code 1
--> Sending SIGTERM to other processes..
[0] 'npm exited with code 1
--> Sending SIGTERM to other processes..
[4] run exited with code 1
--> Sending SIGTERM to other processes..
[2] start:server' exited with code 1
--> Sending SIGTERM to other processes..
[5] start:electron' exited with code 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `npx concurrently 'npm run start:server' 'npm run start:electron' --kill-others --kill-others-on-fail`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\XXXXX\AppData\Roaming\npm-cache\_logs\2021-07-05T15_42_05_915Z-debug.log

Log File:
2021-07-05T15_42_05_915Z-debug_redacted.txt

Expected behavior
Successful launch of dev server and electron

Desktop (please complete the following information):

  • OS: Windows 10

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.