Comments (17)
This issue is back, macos 10.14
Cant even page the example app.
from electron-react-boilerplate.
I've triggered openDevTools() on the release build and it appears the bundle file is not being found:
failed to load file:///Users/me/tmp/electron-react-boilerplate/release/darwin/ElectronReact.app/Contents/Resources/app/dist/bundle.js
There is indeed no bundle file in the dist folder.
from electron-react-boilerplate.
Now It does not execute bundle in package process.
Maybe I should include exec webpack
in package.js
from electron-react-boilerplate.
And I will include electron-debug when it be published to npm.
from electron-react-boilerplate.
I even find out some weird behavior about electron-packager
with ignore
option.....some time whole app will not be included by electron-packager
Update:
electron-packager's filter match to a whole path name..
/Users/chentsulin/Projects/test/electron-react-boilerplate
will match '/test($|/)'
in ignore:
ignore: [
'/test($|/)',
'/tools($|/)',
'/release($|/)'
].concat(devDeps.map(function(name) { return '/node_modules/' + name + '($|/)' }))
be careful with test, tools, release before this issue be fixed.
from electron-react-boilerplate.
@0x80 have you run npm run build
before npm run package
? I have run in the same issue.
@chentsulin maybe the build task should be combined with package one?
from electron-react-boilerplate.
@akovalyov Thanks that looks like the problem.
package.json build step should reference webpack.config.production.js instead of webpack-production.config.js
--edit--
the del command was ok after all ...
I'm too tired for a PR right now ;)
from electron-react-boilerplate.
Also I also noticed that the css file is not being picked up somehow
from electron-react-boilerplate.
It seems to me that the whole package app content is off at the moment. It includes the app folder with all the react sources and the webpack configs and all those things.
I think you want to end up eventually with something like this:
.
├── app.html
├── bundle.js
├── main.css
├── node_modules
└── stats.json
But I haven't figure out how to get there yet. Just planting some seeds :)
Also the reason the css is not picked up is probably because it is extracted into a seperate css file where in the dev version it is kept in the bundle. If it's a seperate file in production it should be referenced in the app.html file I guess.
from electron-react-boilerplate.
This should already be fixed.
from electron-react-boilerplate.
I'm having the same problem (and I did do npm run build
). How do I get the dev tools in the packaged app so I can figure out whats going on? I tried passing NODE_ENV=development
, but that didn't seem to work.
from electron-react-boilerplate.
The packaged app should not contain the dev tools. Run:
npm run dev
from electron-react-boilerplate.
That gives me my app, which works correctly. But when I package it, I just get the blank page, and no dev tools to find out why.
from electron-react-boilerplate.
When did you fork or clone this repo?
from electron-react-boilerplate.
Not sure when, but I have version 0.10.0.
from electron-react-boilerplate.
The repo version is not updated frequently (last updated April 17). You should making a fresh clone of the repo:
If you forked the repo:
git remote add upstream https://github.com/chentsulin/electron-react-boilerplate.git
git pull upstream master
If you didn't change the origin:
git pull --all
from electron-react-boilerplate.
try this :
function createWindow () {
mainWindow = new BrowserWindow({
//...
})
// use this to open dev tools manualy to debug
mainWindow.webContents.openDevTools()
//...
}
from electron-react-boilerplate.
Related Issues (20)
- The `deleteSourceMaps` execute too early?
- Why is AppUpdater its own class?
- Startup Dependencies with Python
- Tailwind Template provided
- environment variable values are appeared directly in production code HOT 4
- Issue with node-7z only in packaged app [not really a bug, asking for help]
- Great boilerplate!!! But I was trying to use electron-builder to build installers for windows, I am unable to achieve it, can somebody guide me on this?
- Unable to build installers using electron-builder, how to resolve this?
- How to solve this problem with postinstall$ node install.js
- dll renderer webpack error on tiptap npm install
- Can't import child_process
- Removing unnecessary electron languages
- how do i add encryption to my saved file with electron-store
- Issue in package of boilorplate
- Build Electron-React-Boilerplate With Tailwindcss
- Relaunch Electron App
- Code signing issue
- How to debug in VS code? HOT 1
- Cli Truncate Package Missing
- An unhandled rejection has occurred inside Forge: TypeError: Cannot read properties of undefined (reading 'split') HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-react-boilerplate.