Open adriablancafort opened 1 month ago
Things to verify:
I guess is a problem of the constants and then is not localizing well the files: rpc and client code
I think I was getting similar issues the other day. I ignored it, thinking it might have to do with bun stuff. @aralroca does it help if I attach some logs or videos here? If so, I will do it once I get hands on my PC tomorrow.
If there are errors in the terminal it would be fine. If there are not, the best thing to do would be to debug the values of the constants I mentioned above. You can use a symlink to use Brisa locally.
file:../brisa/packages/brisa
in package.json
we did some improvements in 0.1.2-canary.2, can you check it?
I tried editing index.tsx
on the www package. I got this:
I will update bun and try again.
Updated bun, still get a similar error:
On a brand-new app, it seems like after the first hot reload, the styles break, and any client component stops working. The server component renders but isn't working. The only way to fix it is to kill the server and start it again.
Ok, it looks like there are different issues in Windows:
h is not a function. (In 'h()', 'h' is undefined)
looks like a hoisting issue in Bun builder... To run bun run www:dev
, have you @gariasf first compiled the latest version of Brisa? The README steps. Thanks!
@gariasf It looks like there is an error with Bun workspaces and Windows, changing this dependency in package.json solves all these hosting problems and this Bun crash:
-"brisa": "workspace:*",
+"brisa": "file:../brisa",
🤔
Hey Aral, I will try those steps this weekend. I'll keep you posted.
The navigation to some pages now is working fine in windows, we pre-released on 0.1.4-canary.1
I would say that now the only outstanding issue is the hoisting issue in Bun builder. So here we have to wait for the Bun fix. It would be nice to do a review, run bun create brisa --example
and test each of the examples on Windows to verify that we can close the ticket.
I have not been able to reproduce the style issue with the Windows I have been given. Could someone give me more details? Or verify if is fixed on last versions?
An error during build (from discord):
Looks that the BRISA_DIR
is incorrect in Windows. The error is from this:
And the crash here:
I guess the problem comes from process.argv[1]
that does not come with Windows separator
Describe the bug The Server Counter in the Brisa demo is not interactive in dev mode in Windows.
To Reproduce Install brisa demo with latest version of bun (1.1.30) in Windows 11. Run bun dev.
Expected behavior The counter should change its value.