New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 BUG: Error when building Just the Basics starter : Cannot read properties of undefined (reading 'icon')
#3473
Comments
Simple fix for withastro#3473 as the slot was never used in this example.
I have proposed a quick fix for this specific theme so that people starting with It seems to be a structural bug with named slots, that break the build if no content is passed. A better fix is needed. |
Simple fix for #3473 as the slot was never used in this example. Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
I merged #3475 to implement a quick fix, so that the starter builds, but leaving this issue OPEN for @bholmesdev or anyone who wants to implement a different solution. |
Looks good, thanks for catching this! Happy to close 👍 |
Reopening this since the underlying bug is still a problem. I'm looking into it. |
We have a default parameter we use internally for children, something like It was reverted today: rollup/rollup#4520 So going to try again and see if the problem goes away. |
What version of
astro
are you using?v1.0.0-beta.36
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Linux
Describe the Bug
The build of "Just the basics" starter fails with the error :
Cannot read properties of undefined (reading 'icon')
We have got 2 reports through Discord and I have been able to reproduce it.
Dev mode works, only the build fails.
Reproduction steps:
npm init astro
npm run build
Link to Minimal Reproducible Example
https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics
Participation
The text was updated successfully, but these errors were encountered: