Comments (8)
Change your imports to be
import (
"github.com/hexops/vecty"
"github.com/hexops/vecty/elem"
"github.com/hexops/vecty/event"
"github.com/microcosm-cc/bluemonday"
"github.com/russross/blackfriday/v2"
)
And run go mod tidy
again.
What is causing the problem is "github.com/slimsag/blackfriday", which has a malformed go.mod
file
from vecty.
Use wasmserve!
Please read the example instructions
https://github.com/hexops/vecty/tree/main/example
from vecty.
'go get'
from vecty.
I tried the following and got no error:
$ git clone [email protected]:hexops/vecty.git
$ cd vecty/example/markdown/
$ go mod tidy
go: downloading github.com/slimsag/blackfriday v2.0.0+incompatible
go: downloading github.com/microcosm-cc/bluemonday v1.0.2
go: downloading golang.org/x/net v0.0.0-20181220203305-927f97764cc3
Are you running this example from inside the vecty project? Did you create your own go.mod
file?
from vecty.
@soypat yes. I create my own go.mod cuz inside the markdown
only have 1 go file
from vecty.
@soypat It works! Thanks!
from vecty.
But now I got this error running with gopherjs serve
Any idea?
from vecty.
Thanks, it works now!
from vecty.
Related Issues (20)
- [Question]: How to contribute? HOT 11
- Add a basic example on usage HOT 5
- allow global panic handler HOT 2
- removeChild crashes if parent node is nil HOT 1
- [feature request] static HTML/CSS components HOT 6
- Examples go.mod file conflict HOT 1
- Add snake videogame example. HOT 4
- question: What is this prop vs. state idea HOT 3
- Instrumenting panic messages HOT 8
- question: initializing rendered HTML nodes via javascript HOT 4
- Porting gopherjs js calls to use with vecty HOT 2
- Document the availability of vecty project template generator HOT 1
- Return type of If function
- prop.Value("") does not produce the correct html on first render
- Vecty needs an official website HOT 10
- The slack invite link in readme is broken
- vecty docs HOT 1
- How to update a rendered element? HOT 10
- Todo MVC example has misleading usage of p.Items HOT 2
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 vecty.