marceloaugusto80 / electron-react-typescript-boilerplate Goto Github PK
View Code? Open in Web Editor NEWBoilerplate for Electron + React + Typescript + Fast-Refresh + Jest.
License: MIT License
Boilerplate for Electron + React + Typescript + Fast-Refresh + Jest.
License: MIT License
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
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:
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
}
});
import './i18n'
these steps i take from https://react.i18next.com/getting-started
repo with bug
https://github.com/JumpAttacker/TestElectron
Describe the bug
npm start encounters error
To Reproduce
Steps to reproduce the behavior:
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):
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.