Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bankai + Electron falling over because no service worker #233

Open
sholtomaud opened this issue Sep 11, 2017 · 8 comments
Open

Bankai + Electron falling over because no service worker #233

sholtomaud opened this issue Sep 11, 2017 · 8 comments

Comments

@sholtomaud
Copy link
Contributor

Error: ENOENT: no such file or directory, open '.../sw.js

Bankai seems to be expecting a service worker in an Electron app. But Electron doesn't need one as it has a runtime nodejs.

@sholtomaud
Copy link
Contributor Author

perhaps a cli option >--sw [true/fase] or just --sw would be the go?

@yoshuawuyts
Copy link
Member

yoshuawuyts commented Sep 11, 2017 via email

@sholtomaud
Copy link
Contributor Author

Ok. That was an interesting exercise.

I like the new server, however i'm not sure what the manifest and sw are doing in the information screen for an electron app.

image

Also bankai#new-new-new seems to be using the new http2 switch, which I haven't set up for an electron app, and the response is: ERR_INSECURE_RESPONSE. I'm tired now might come back to it in the morning.

Sorry, I failed to test this issue.

@sholtomaud
Copy link
Contributor Author

image

@sholtomaud
Copy link
Contributor Author

sholtomaud commented Sep 12, 2017

@yoshuawuyts How do I run an electron bankai choo-app so I don't get the ERR_INSECURE_RESPONSE error?

@sholtomaud
Copy link
Contributor Author

... does the new-new-new log screen reflect the folder structure? What is the documents item referrin to?

@yoshuawuyts
Copy link
Member

yoshuawuyts commented Sep 13, 2017 via email

@bcomnes
Copy link
Collaborator

bcomnes commented Sep 13, 2017

We use the weird frankenvironment of chrome and node in electron browser windows and require modules directly. 0 build step, thats why I push for everything working at runtime just as well as post build steps 😜

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants