[BUG]: astro-paper build fails
Describe the bug AstroPaper build fails.
To Reproduce Vanilla repo
Expected behavior The build to not produce errors.
Screenshots
[email protected] build astro check && astro build
12:11:23 [content] Syncing content 12:11:23 [content] Content config changed 12:11:23 [content] Clearing content store 12:11:23 [WARN] [glob-loader] The glob() loader cannot be used for files in src/content. 12:11:23 [WARN] [glob-loader] Skipped 19 files that matched **/*.md. 12:11:23 [content] Synced content 12:11:23 [types] Generated 241ms 12:11:23 [check] Getting diagnostics for Astro files in /Users/kriki/Blog/test/dimensional-debris... src/components/Header.astro:89:21 - error ts(2604): Component '< >' is not a valid component.
If this is a Svelte or Vue component, it might have a syntax error that makes it impossible to parse.
89 <> ~~
src/layouts/Layout.astro:117:38 - warning ts(6133): 'rel' is declared but its value is never read.
117 onload="this.onload=null; this.rel='stylesheet';" ~~~ src/layouts/Layout.astro:117:20 - warning ts(6133): 'onload' is declared but its value is never read.
117 onload="this.onload=null; this.rel='stylesheet';"
~~~~~~
src/layouts/Layout.astro:106:7 - warning astro(4000): This script will be treated as if it has the is:inline directive because it contains an attribute. Therefore, features that require processing (e.g. using TypeScript or npm packages in the script) are unavailable.
See docs for more details: https://docs.astro.build/en/guides/client-side-scripts/#script-processing.
Add the is:inline directive explicitly to silence this hint.
106 type="application/ld+json" ~~~~
src/layouts/PostDetails.astro:171:15 - error ts(2604): Component '< >' is not a valid component.
If this is a Svelte or Vue component, it might have a syntax error that makes it impossible to parse.
171 <> ~~ src/layouts/PostDetails.astro:137:15 - error ts(2604): Component '< >' is not a valid component.
If this is a Svelte or Vue component, it might have a syntax error that makes it impossible to parse.
137 <> ~~
Result (50 files):
- 3 errors
- 0 warnings
- 3 hints
Additional context npm run dev works fine on localhost.
[email protected] dev astro dev
08:48:24 [types] Generated 2ms 08:48:24 [vite] Re-optimizing dependencies because vite config has changed
astro v4.16.16 ready in 638 ms
┃ Local http://localhost:4321/ ┃ Network use --host to expose
08:48:24 [content] Syncing content 08:48:24 [content] Astro version changed 08:48:24 [content] Clearing content store 08:48:24 [WARN] [glob-loader] The glob() loader cannot be used for files in src/content. 08:48:24 [WARN] [glob-loader] Skipped 19 files that matched **/*.md. 08:48:24 [content] Synced content 08:48:24 watching for file changes... 08:48:24 [watch] .astro/assets.mjs 08:48:24 [watch] .astro/modules.mjs
i have been using this theme for over a year and i have the same issue now. i've tried everything i can think of to fix the errors but i'm stuck after upgrading my project. i have tried clean installs too, but i'm still running into incompatibility errors like you.
This one should have been solved in AstroPaper v5. So, I'll close this one for now. You can reopen this if this issue still exists.