Giter Site home page Giter Site logo

Failed Running The Example about vecty HOT 8 CLOSED

KiddoV avatar KiddoV commented on June 1, 2024
Failed Running The Example

from vecty.

Comments (8)

soypat avatar soypat commented on June 1, 2024 1

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.

soypat avatar soypat commented on June 1, 2024 1

Use wasmserve!

Please read the example instructions
https://github.com/hexops/vecty/tree/main/example

from vecty.

VinceJnz avatar VinceJnz commented on June 1, 2024

'go get'

from vecty.

soypat avatar soypat commented on June 1, 2024

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.

KiddoV avatar KiddoV commented on June 1, 2024

@soypat yes. I create my own go.mod cuz inside the markdown only have 1 go file

from vecty.

KiddoV avatar KiddoV commented on June 1, 2024

@soypat It works! Thanks!

from vecty.

KiddoV avatar KiddoV commented on June 1, 2024

But now I got this error running with gopherjs serve

Capture

Any idea?

from vecty.

KiddoV avatar KiddoV commented on June 1, 2024

Thanks, it works now!

from vecty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.