Bjorn Lu

Results 767 comments of Bjorn Lu

In Astro 1.0.1, we get a clearer error message now like: `Cannot find module 'component:Card.astro' imported from '/home/projects/github-4o8rsa/src/pages/index.astro'`. It looks like this happens because `compilerOptions.baseUrl` isn't set, and searching around...

Debugging this today, from what I can tell, Vite's SSR seems to be working well, but something's fishy within React that seems to be calling `useLayoutEffect` twice (once during SSR,...

Thanks for checking it @mayank99! Looks like indeed it's working as before now. I think the warnings would be preserved for now so it's expected in this case. I'll go...

The overlay is showed for any errors happening on the server (IIRC), so if we want to hide the overlay, we'd need specific handling for `useLayoutEffect`. I suppose with React...

You're right. Looks like the error is indeed from the second call from https://github.com/withastro/astro/issues/3923#issuecomment-1207832056, not from React. My bad! In rc.7 we returned to the non-breaking way that doesn't kill...

Tried to create a React repro today without success. I did notice though, if you export your component as a named function instead like `export default function Component() {`, the...

I believe #4213 should fix this too. I saw the same error while making the test and can confirm it's fixed with the PR.