Comments (9)
@chicoxyzzy I'll assign you here to this so you can close this when you have an example app for this particular use case
from socket-examples.
Looks like a different error actually
from socket-examples.
I don't think that's related, @nichoth. This isn't a Bluetooth permission issue. And I don't get a crash report window like that issue does.
from socket-examples.
So the app works as expected when I use open dist/mac/TestExample-dev.app
in the terminal. But when I open it by double-clicking from the Finder, this bug appears.
from socket-examples.
I can confirm the app crashes on button click when it's opened from the Finder. Updates from the Node backed doesn't seem to work as well
from socket-examples.
The issue is that the node
command cannot be resolved when running from Finder (double clicking the .app
file) because there the PATH
env var is very limited by default (/usr/bin:/bin:/usr/sbin:/sbin
)
node
is available on my PATH
in /usr/local/bin
so changing the mac_cmd
to
mac_cmd: /usr/local/bin/node index.js
fixes this and prevents a crash
it is unfortunate that we have no crash report or logs for things like this
from socket-examples.
Shouldn't node
be included in the .app
so end users don't need to install Node themselves?
from socket-examples.
error logs could be caught via
window.addEventListener('process-error', ({ detail }) => {
console.error('process-error', detail)
})
in the frontend code. Hm, maybe we should add this to the preload script.
from socket-examples.
Shouldn't node be included in the .app so end users don't need to install Node themselves?
it is definitely possible and that's how our own apps work. That will make example apps code a bit more complicated. I think that we should rethink example apps to make some of them work without node and make others use bundled node. @heapwolf @jwerle WDYT?
from socket-examples.
Related Issues (17)
- Use `ssc-test` for tests
- add css
- Preact example should be a counter
- make a branch using the default build process HOT 1
- examples crash on startup (MacOS) HOT 4
- Crash when testing
- Update examples
- add example: Svelte HOT 2
- Examples to add HOT 11
- How to install the Socket SDK compiler? HOT 2
- I'm getting an error when I run the examples on windows HOT 10
- Add CRDT example HOT 3
- I'm getting an error when I run the examples on `windows` HOT 2
- Question: how to use from portable nodejs HOT 6
- No socket supply in vite example HOT 1
- When executing pnpm start for the second time, `scc.js` file is missing 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 socket-examples.