-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
goappGetenv is not a function, got undefined #959
Comments
If I upgrade from v9 to v10 I instead get: panic: JavaScript error: Failed to execute 'replaceChild' on 'Node': parameter 2 is not of type 'Node'. [recovered]
wasm_exec.js:22 panic: JavaScript error: Failed to execute 'replaceChild' on 'Node': parameter 2 is not of type 'Node'. |
Well. I guess you need to show us the code for that trivial example. I currently have no V10 based public project (but we use V10 since months for our products). Maybe try something we published with V9 in the meantime:
I think the only needed change for V10 is using |
I literally just copy-pasted the examples from the site and renamed the module for a project I'm testing. I checked out and built your TypeError: import object field 'gojs' is not an Object |
Let me check https://github.com/oderwat/go-guess-the-number-app .. this is very old and I forgot that I had this there. |
In case it makes a difference, I'm compiling with |
That is the reason for this one error. The gojs changend between the time my code was written and now. This can't easily be captured by the package. I quickly rewrote my Please tell me if it works for you. I may also update the other examples asap. |
For posterity - it seems the cluster of related issues here is that there are a bunch of files needed to serve the site statically which can only be generated with |
main.main() panics in
app.RunWhenOnBrowser
when running even a trivial example.The text was updated successfully, but these errors were encountered: