3 ms·
I'm intrigued by this as I've been teaching myself some Go recently (to see if I could get over my initial distaste for it). I've been enjoying the process, so
by 52-6F-62 8y ago
I'm intrigued by this as I've been teaching myself some Go recently (to see if I could get over my initial distaste for it).
I've been enjoying the process, so this subject interests me but I'm running into a long series of errors when starting the tutorial dev server.
github.com/vugu/vugu@v0.0.0-20190329041623-36c2913f3f3c/env-js.go:23:16: undefined: js.Func
github.com/vugu/vugu@v0.0.0-20190329041623-36c2913f3f3c/env-js.go:28:15: undefined: js.FuncOf
github.com/vugu/vugu@v0.0.0-20190329041623-36c2913f3f3c/env-js.go:107:34: js.Global().Get("document").Truthy undefined (type js.Value has no field or method Truthy)
github.com/vugu/vugu@v0.0.0-20190329041623-36c2913f3f3c/env-js.go:152:19: mountParentEl.Truthy undefined (type js.Value has no field or method Truthy)
github.com/vugu/vugu@v0.0.0-20190329041623-36c2913f3f3c/env-js.go:165:16: mountChild1.Truthy undefined (type js.Value has no field or method Truthy)
github.com/vugu/vugu@v0.0.0-20190329041623-36c2913f3f3c/env-js.go:309:8: n.Truthy undefined (type js.Value has no field or method Truthy)
github.com/vugu/vugu@v0.0.0-20190329041623-36c2913f3f3c/env-js.go:680:8: el.Truthy undefined (type js.Value has no field or method Truthy)
github.com/vugu/vugu@v0.0.0-20190329041623-36c2913f3f3c/env-js.go:759:19: oldKeyJSVal.Truthy undefined (type js.Value has no field or method Truthy)
github.com/vugu/vugu@v0.0.0-20190329041623-36c2913f3f3c/env-js.go:810:7: v.Truthy undefined (type js.Value has no field or method Truthy)
github.com/vugu/vugu@v0.0.0-20190329041623-36c2913f3f3c/env-js.go:813:51: firstChild.Truthy undefined (type js.Value has no field or method Truthy)
github.com/vugu/vugu@v0.0.0-20190329041623-36c2913f3f3c/env-js.go:813:51: too many errors
Have any insight?
- shurcooL 8y agoWhat version of Go are you using? It sounds like an older one. Try the latest (1.12.x). The syscall/js API is still in development and undergoing API changes. It’s not stable like the rest of Go’s standard library.
- 52-6F-62 8y agoI'm on Go 1.11.5. I'll try updating and see if it will work then. edit: Updatd to 1.12—no dice. Many of the errors did go the way of the buffalo, but a couple remain: 2019/03/29 11:08:37 Error from compile: exit status 2 (out path="/var/folders/lp/d1rds9q57wqdmgchmzjjrh3hfsm71q/T/main_wasm_237110380"); Output: # example.com/test/testapp ./root.go:11:13: undefined: RotData ./root.go:37:30: data.Toggle undefined (type *RootData has no field or method Toggle) ./root.go:47:8: data.Toggle undefined (type *RootData has no field or method Toggle)
- seankimdesign 8y agoI'll take a wild guess and say there might be a typo on the word _RotData_
- 52-6F-62 8y agoAppears that way. `root.go` is a file generated by the framework. Thought passing the errors along would be of some value...