๐ [Bug]: Module doesnt contain package
Closed this issue ยท 3 comments
kashingonline commented
Bug Description
github.com/gofiber/template/html: module github.com/gofiber/template@latest found (v1.8.2), but does not contain package github.com/gofiber/template/html
How to Reproduce
go mod tidy
Expected Behavior
I ekxpect it to install
Template package Version
1.8.2
Code Snippet (optional)
package main
import (
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/logger"
"github.com/gofiber/fiber/v2/middleware/monitor"
"github.com/gofiber/fiber/v2/middleware/recover"
"github.com/gofiber/template/html"
)
func NewApplication() *fiber.App {
env.SetupEnvFile()
//database.SetupDatabase()
engine := html.New("./views", ".html")
app := fiber.New(fiber.Config{Views: engine})
app.Use(recover.New())
app.Use(logger.New())
app.Get("/dashboard", monitor.New())
router.InstallRouter(app)
return app
}
Checklist:
- I agree to follow Fiber's Code of Conduct.
- I have checked for existing issues that describe my problem prior to opening this one.
- I understand that improperly formatted bug reports may be closed without explanation.
ReneWerner87 commented
Pls check the docs and use version 2
https://docs.gofiber.io/template/html/
github.com/gofiber/template/html/v2
gaby commented
@kashingonline Does the above fix your issue?
kashingonline commented
Hi, yes, wasnt clear from the documentation but that did fix my issue. Thanks for helping.