Comments (2)
The issue here is rooted in the honest mistake of Ramón accidentally overwriting the wrong file in the JS runnable template generated by subo. Instead of putting the runnable code in lib.js
, the code overwrites the "magic" boilerplate in index.js
that we use to instrument the imports and load the TextEncoder
polyfill missing from the javy engine.
With the above, this is not a "bug" in subo build
, per se, but I'd argue there are various things we could (and should) improve here, and I would propose that we rename this issue to track the improvement of subo build error messages, and file a new issue for reducing the magic boilerplate and documenting the Reactr JS API boundary to demistify the interaction between index.js-lib.js.
If I read the above error message correctly there are two issues here (and a third potential one from experience working with JS runnables that should also be addressed).
- the
javy
build fails due to a parse-time JS reference error (our HTTP API relies on theTextEncoder
but we fail to import the polyfill), this triggers a build failure injavy
which is a Rust binary and we are seeing the backtrace of the Rust panic - we use wizer to preinitialize/snapshot the generate wasm runnable for faster startup times, it seems like we are not picking up on the build failure and still trying to run wizer on the non-existent wasm output
A third issue that is not triggered here is a preceding step, even before we run javy we use webpack to bundle all the code into a single JS file that we compile afterwards. This step can also fail with mysterious error messages.
Note that these are all compile-time issues and runtime errors are very cryptic and hard to debug themselves, but that DX issue should be handled and improved on separately.
from e2core.
Thank you so much for investigating this!!
from e2core.
Related Issues (20)
- Get server tests passing
- vmain: implement Multi-tenant auth supplier
- re-implement streaming triggers
- Account Aware Syncer
- Example project modules should be built as part of CI
- Archive suborbital/wasmtime-go HOT 1
- Remove circular dependency from sat HOT 2
- Decouple sat & e2core
- Build and ship e2core binaries and images for each commit
- Devektorification
- Zerolog should have timestamps
- Document e2core mod start
- e2core execution needs environment in the ident, and authentication is broken
- Gracefully handle bad sync updates
- Refine handling requests by module name
- Make sure tracing happens all through an execution flow
- CI failure on TestEngineFetch HOT 1
- Suppprt wasm callers over web socket
- Separate logs from individual wasm modules from general e2core
- Replace vastly deprecated syscall with whatever is current. Probably exec.
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 e2core.