hexops/vecty

Packages issue with functions used from vecty framework!

harshit9033 opened this issue · 2 comments

While performing a simple demo, I faced this issue:-

PS C:\Users\Harshit\go\src\vecty\example\hellovecty> go run hellovecty.go
# github.com/gopherjs/vecty
..\..\dom.go:1236:28: invalid operation: global.Get("document") == undefined (operator == not defined on struct)
..\..\dom_wasmjs_gopherjs.go:60:7: invalid operation: j == js.Null() (struct containing [0]func() cannot be compared)     
..\..\dom_wasmjs_gopherjs.go:63:7: invalid operation: j == js.Undefined() (struct containing [0]func() cannot be compared)
PS C:\Users\Harshit\go\src\vecty\example\hellovecty> 

The hellovecty example is supposed to be compiled into a wasm file that is then served by a web server.

As mentioned already, you need to follow the instructions found in the README here in order to successfully run the examples:

https://github.com/hexops/vecty/blob/main/example/README.md

Hope that helps!