kitajs / html

🏛️ Super fast JSX runtime to generate HTML strings that works everywhere. If it supports string we got you covered.
http://kitajs.org/discord
MIT License
592 stars 29 forks source link

SyntaxError: export 'Html' not found in '@kitajs/html' in the latest version #261

Closed Sketioo closed 3 months ago

Sketioo commented 3 months ago

Prerequisites

Versions

in your latest version 4.2.0

Description

So right now I use Elysia.js to develop my application, and then I install @elysiajs/html and use it as documentation standard. After I wrote the code, it was supposed to work perfectly, but when I see the console, there is an error like this:

1 | (function (entry, fetcher)
    ^
SyntaxError: export 'Html' not found in '@kitajs/html'

This error appears in the latest version of @kitajs/html only. When I downgraded it to 4.1.0, it worked completely fine.

Steps to Reproduce

import { Elysia } from "elysia";
import { staticPlugin } from "@elysiajs/static";
import { html } from "@elysiajs/html";

const app = new Elysia()
  .use(html())
  .use(
    staticPlugin({
      prefix: "/",
    })
  )
  .get("/", () =>
    Bun.file(
      "/c/Users/Martio Husein Samsu/Documents/Perkuliahan/Semester 7/Workspace/BUN/crud-app/views/home.html"
    )
  )

  .listen(3000);

console.log(
  `🦊 Elysia is running at ${app.server?.hostname}:${app.server?.port}`
);

Expected Behavior

No error

arthurfiorette commented 3 months ago

Hi @Sketioo i just released 4.2.1 to fix this issue, can you confirm?

Sketioo commented 3 months ago

Its worked now, thanks!