-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Tempest UI fails to load: Uncaught (in promise) TypeError: import object field 'env' is not an Object #15
Comments
Quoting Troy J. Farrell (2023-05-22 12:25:56)
I'm trying to get started with Tempest, but I know very little about
web_asm.js and WebAssembly in general. I know that I have a
non-standard setup, so I'm going to list versions of software.
I would like you to tell me if any of these seem far from what you're
using:
The only thing that jumps out is the distro, but if that causes problems
I'd expect it to affect the sandbox, not the browser.
Uncaught (in promise) TypeError: import object field 'env' is not an
Object
Is there an associated stack trace?
I know that you don't have time for this.
Don't make such assumptions -- I'm excited someone is playing with it.
Definitely don't hesitate to bug me some more if you get stuck.
I pushed some more commits to main that should fix the build error you
hit.
|
There is not an associated stack trace. The error message simply says that it was uncaught in a promise. I replaced If that looks like what you've built so far, then we can probably close this issue. (Should we update the README.md to specify that ./configure should get tinygo's wasm_exec.js and not the one in GOROOT?) |
There's code in make.go that tries to figure out where wasm_exec.js should come from based on whether it's using tinygo or the stock toolchain, so there's still a bug here where that logic doesn't work right on your setup -- so let's leave this open to track that at least. Re: websocket: I'm doing dev stuff over plain HTTP, so that shouldn't be the issue. Can you show me the exact error message, and any corresponding log messages on the console from the server? |
In each case (so far) I had specified a
|
Ah, the first command probably picked up the official toolchain's Where is the tinygo executable you're using within your filesystem? |
(Yes, I'm working as root in a dedicated-to-tempest VM.) I checked out the tinygo repository to
|
Ok, that makes sense then. I think the most we could do on the wasm_exec.js front is perhaps a more explicit error message, but I think this is working as intended then -- you didn't have the file installed, not much else for it to do. tinygo-org/tinygo#1140 looks relevant to those errors, and I'm skeptical that it's related to the disconnects; sounds like it could cause a memory leak but shouldn't otherwise cause problems. Just to be clear, does the UI appear to be working? The log message is to be expected when a client disconnects, (whenever you close the tab if nothing else) so it doesn't necessarily mean something's broken if there aren't other issues. |
Just double-checked: I do see those errors when I build with TinyGo, but I'm not getting disconnects. |
Perhaps it is working… I can log in with a dev account. Uploading test-app gives me this message at the bottom of the browser:
There are (surprisingly) no messages in the terminal. The test-app never appears under the app list, but maybe that's not written yet. So, maybe it's working? Either way, we can probably close this issue. |
Does your user have the But yeah, I think we can close this. |
I'm trying to get started with Tempest, but I know very little about web_asm.js and WebAssembly in general. I know that I have a non-standard setup, so I'm going to list versions of software. I would like you to tell me if any of these seem far from what you're using:
AlmaLinux 9 (like RHEL 9)
go 1.20.4 (binaries from golang.org)
binaryen version 113 (built from source)
capnproto-c++-0.10.4 (built from source)
bpf_asm from linux 6.3.3 (built from source)
tinygo 0.27.0 (built from source)
go-capnp v3.0.0-alpha.28
tempest 64eebec, except that I commented out line 290 of internal/server/main/external-api.go, so it would compile and I applied the change in #14.
config.json:
Command line:
Client:
Firefox 113.0.1 on macOS
When I try to open the home page, I get this message in :
Uncaught (in promise) TypeError: import object field 'env' is not an Object
I'll track this down. I know that you don't have time for this. But I need to know that my crazy setup is close to yours.
The text was updated successfully, but these errors were encountered: