Skip to content
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]: astro-paper build fails #422

Open
man0war64 opened this issue Dec 3, 2024 · 1 comment
Open

[BUG]: astro-paper build fails #422

man0war64 opened this issue Dec 3, 2024 · 1 comment

Comments

@man0war64
Copy link

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

@man0war64 man0war64 changed the title [BUG]: [BUG]: AstroPaper build fails Dec 3, 2024
@man0war64 man0war64 changed the title [BUG]: AstroPaper build fails [BUG]: astro-paper build fails Dec 3, 2024
@dubchild
Copy link

dubchild commented Dec 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants