Open Tc-001 opened 2 years ago
Seems to no longer be the case as of 0.23.1
yeh, there was a few breaking changes in the first release, but now things should be all good @Tc-001 , thank you for reporting it my friend
Hello @aFuzzyBear !
Sadly I can indeed reproduce this issue. It seems to happen when there is a svelte renderer present in the config. I am unsure about other renderers.
Repro: https://codesandbox.io/s/condescending-chaum-29ceid?file=/src/layouts/main.astro
Removing <Font />
component fixes the error and renders a blank page.
I am still unsure of the exact cause, hope this helps!
Hey @Tc-001 , thank you for the feedback, svelte you say, I'll ask @lostra01 for his advice on this,
Hope you are doing well my friend.
Thanks, I am doing well!
This is a really weird side effect. I have gone through the code like 10 times and see no reason for it to throw a fuss.
why does it even care what renderer the page uses???
Best of lucks!
Tldr from me and fuzzy's discord convo: Astro seems to pick up the font component as something that needs an external renderer, external renderer can't render the component
Yes, I feel that this component is needing to be revisited and perhaps redone, however given there is a few interesting things in development from the AStro core team I am hesitant to begin any real redesign until the new api's for integrations, and build hooks comes into play
When building my prod site with
astro-fonts@0.2.3
, it will fail with the following error:Browser error:
Console error:
I am unable to reproduce the error in codesandbox, but downgrading to
astro-fonts@0.1.0
fixed the issue for some reasonI am really unsure where to start trying to debug this, or even if this is related to astro-fonts, of if it should be reported upstream
Some more info
package.json
```json { "name": "@example/starter", "version": "0.0.1", "private": true, "scripts": { "dev": "astro dev", "start": "astro dev", "build": "astro build", "preview": "astro preview" }, "devDependencies": { "@astrojs/renderer-svelte": "^0.3.1", "@types/node": "^17.0.18", "astro": "^0.22.20", "astro-fonts": "^0.2.3", "astro-spa": "^1.3.8", "autoprefixer": "^10.4.2", "cssnano": "^5.0.17", "fuse.js": "^6.5.3", "marked": "^4.0.12", "postcss-preset-env": "^7.3.3", "vite-plugin-html": "2.1.2", "astro-icon": "^0.5.3", "postcss-load-config": "^3.1.3" }, "dependencies": {}, "browserslist": [ "defaults" ] } ```