Open indrazm opened 3 months ago
The current solution is using version 1.0.0 Make sure you do this :
"@elysiajs/html": "1.0.0" 👍
"@elysiajs/html": "^1.0.0" 👎
I am also experiencing the same issues
$ bun run --watch src/index.ts
1 | (function (entry, fetcher)
^
SyntaxError: export 'Html' not found in '@kitajs/html'
1 | (function (entry, fetcher)
^
SyntaxError: export 'Html' not found in '@kitajs/html'
^C
1 | (function (entry, fetcher)
^
SyntaxError: export 'Html' not found in '@kitajs/html'
1 | (function (entry, fetcher)
1 | (function (entry, fetcher)
^
SyntaxError: export 'Html' not found in '@kitajs/html'
1 | (function (entry, fetcher)
^
SyntaxError: export 'Html' not found in '@kitajs/html'
"@elysiajs/html": "^1.1.0",
"elysia": "latest"
Yes, you can use @sacsbrainz version 1.0.0
The current solution is using version 1.0.0 Make sure you do this :
"@elysiajs/html": "1.0.0" 👍 "@elysiajs/html": "^1.0.0" 👎
Yes, you can use @sacsbrainz version 1.0.0
The current solution is using version 1.0.0 Make sure you do this :
"@elysiajs/html": "1.0.0" 👍 "@elysiajs/html": "^1.0.0" 👎
didn't work either error:
$ bun run --watch src/index.ts
1 | (function (entry, fetcher)
^
SyntaxError: module '/home/sacs/Documents/dev/node_modules/@elysiajs/html/dist/index.js' does not have an export named 'default'. Did you mean 'html'?
1 | (function (entry, fetcher)
^
SyntaxError: module '/home/sacs/Documents/dev/node_modules/@elysiajs/html/dist/index.js' does not have an export named 'default'. Did you mean 'html'?
https://github.com/kitajs/html/commit/6790818c4c694a9816bf7ccddc39779fa3afc8d1
This looks like the offending commit.
Yep looks like that. I do suggest everyone to change the Html to JSX Element just like this.
interface Props {
children: JSX.Element | JSX.Element[]
}
const Template = ({children}: Props) => {
return (
<div>{children}</div>
)
}
You can always extends for the whole app using typescript definition file.
Yes, you can use @sacsbrainz version 1.0.0
The current solution is using version 1.0.0 Make sure you do this :
"@elysiajs/html": "1.0.0" 👍 "@elysiajs/html": "^1.0.0" 👎
didn't work either error:
$ bun run --watch src/index.ts 1 | (function (entry, fetcher) ^ SyntaxError: module '/home/sacs/Documents/dev/node_modules/@elysiajs/html/dist/index.js' does not have an export named 'default'. Did you mean 'html'? 1 | (function (entry, fetcher) ^ SyntaxError: module '/home/sacs/Documents/dev/node_modules/@elysiajs/html/dist/index.js' does not have an export named 'default'. Did you mean 'html'?
Have a look to my last replies brother.
I can confirm version ^1.0.2 works fine
Hi guys, kita's v4.2.1 just fixed this issue. Sorry for the delay!
Hi guys, kita's v4.2.1 just fixed this issue. Sorry for the delay!
ref: kitajs/html#261
You rock!!
I upgraded my dependencies and can confirm @kitajs/html is version 4.2.1 but the error is still present. Is there something else I need to do or the @elysiajs/html plugin needs to be updated as well?
clear your lock file (bun.lockb) and try again maybe
On Sun, Aug 4, 2024 at 7:54 AM 8549 @.***> wrote:
I upgraded my dependencies and can confirm @kitajs/html is version 4.2.1 but the error is still present. Is there something else I need to do or the @elysiajs/html plugin needs to be updated as well?
— Reply to this email directly, view it on GitHub https://github.com/elysiajs/elysia-html/issues/91#issuecomment-2267571005, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHRBWFMRU47ZENZJGAPO5QLZPY6EFAVCNFSM6AAAAABLM3C56KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRXGU3TCMBQGU . You are receiving this because you commented.Message ID: @.***>
Did not work even overriding the version or deleting the bun.lockb
Hello,
So, there is an issue with @elysiajs/html version 1.1.0 which html is not available imported from @kitajs/html. it would be error like this .
The issue looks like the Html is not available in @kitajs/html.
Feel free to try and it still works on @elysiajs/html version 1.0.0
Thanks.