kumarryogeshh / electron-react-parcel-boilerplate Goto Github PK
View Code? Open in Web Editor NEWBoilerplate code to create basic, production ready Electron app using React, Parcel application bundler.
License: MIT License
Boilerplate code to create basic, production ready Electron app using React, Parcel application bundler.
License: MIT License
Hello there, your boilerplate is working great until I encountered the errors fs.existsSync is not a function
and Cannot statically evaluate fs argument
after trying to use another npm package. While trying to troubleshoot it, I tried to specify the Parcel targets node
and electron
by changing the line in package.json
from
"react-start": "parcel -p 3000 index.html --out-dir build",
to
"react-start": "parcel -p 3000 index.html --out-dir build --target node",
and
"react-start": "parcel -p 3000 index.html --out-dir build --target electron",
However, running yarn start
no longer launch the Electron app and no server is listening to http://localhost:3000
.
What is the correct way to set the targets to node
and electron
?
Thank you very much!
GitHub Repo to reproduce problem:
https://github.com/nyxynyx/electron-react-parcel-boilerplate-problem
Hi, thank you for this wonderful boilerplate! I am new to Node.js and Electron and this is very helpful!
When I ran yarn
on a new git clone
of the boilerplate repo, I notice many deprecation warnings, such as
[1/4] ๐ Resolving packages...
warning babel-core > babel-register > [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning babel-core > babel-runtime > [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning bundlesize > brotli-size > [email protected]: The zlib module provides APIs for brotli compression/decompression starting with Node.js v10.16.0, please use it over iltorb
warning electron > electron-download > nugget > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning parcel-bundler > [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning parcel-bundler > htmlnano > uncss > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning parcel-bundler > htmlnano > uncss > jsdom > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning parcel-bundler > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
warning parcel-bundler > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
warning wait-on > [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning wait-on > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning wait-on > [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
warning wait-on > joi > [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
warning wait-on > joi > [email protected]: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
warning wait-on > joi > topo > [email protected]: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
[2/4] ๐ Fetching packages...
[3/4] ๐ Linking dependencies...
[4/4] ๐จ Building fresh packages...
Should we be concerned about these warnings? Will the outdated packages in package.json
be updated soon?
Thank you!
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.