#Error when trying to publish astro blog to github.io page

35 messages ยท Page 1 of 1 (latest)

nova gull
#

did anyone else have a problem with publishing the astro page on github domain?
m trying to fix this the whole day:(
i get this error when i try to run the page i think its like trying to maybe access the package-lock.json but i dont have that in my project ๐Ÿ‘€
[https://github.com/saicaca/fuwari (using this template)

here is my github repo:
https://github.com/emin-skrijelj/emin-skrijelj.github.io

GitHub

A static blog template built with Astro. Contribute to saicaca/fuwari development by creating an account on GitHub.

GitHub

Contribute to emin-skrijelj/emin-skrijelj.github.io development by creating an account on GitHub.

hot moat
#

Did you just push a change to your workflow file?

#

I was looking at that lol

nova gull
#

im trying to change it to some i found online

#

i got no idea what im doing to be honest

hot moat
#

Ok it seems like originally you just copy pasted the workflow file into your won? That's not what you're meant to do. What you have now is the right way to use the action

hot moat
#

You need to set it up as shown in the example there, but I believe you've done that now

nova gull
#

ohh

#

so i need to set in package-manager to be pnpm since its using npm instead of it

#

damnnn

hot moat
#

Ok it's erroring now because you haven't specified a pnpm version to use. Either use corepack, or pass with: package-manager: pnpm@latest as shown in the example

nova gull
#

sorry but, where do i pass that? like in the yml file?

hot moat
#

or just set the packageManager field in package.json.

#

Have a look at your astro.yml. It's one of the commented out lines

nova gull
#

ahhhhh

#

god damn

hot moat
#

The error message also tells you about the 2 ways you can resolve this

nova gull
#

okay i have like 4 yml files, let me remove them and do exactly

#

what you've told me

#

omgg

#

IT WORKS

hot moat
#

looks like it's working now ๐Ÿ™‚

nova gull
#

!

#

yess

#

thank you so much

#

you have no idea how much ive been banging my head on this

#

i made like 3 dif reps

#

caus i thought i fucked sm up in the code

#

ughh

#

๐Ÿ™

#

thanks bro