svelte-sitemap icon indicating copy to clipboard operation
svelte-sitemap copied to clipboard

Actually can't run the script

Open danieleavolio opened this issue 2 years ago • 4 comments

Right now, my dependencies are like this: "@sveltejs/adapter-auto": "next", "@sveltejs/adapter-static": "^1.0.0-next.29", "@sveltejs/adapter-vercel": "^1.0.0-next.47", "@sveltejs/kit": "next",

scripts: "build": "svelte-kit build", "postbuild": "npx svelte-sitemap --domain https://danieleavolio.it"

Whenever i try to run the command I get: × Make sure you are using this script as 'postbuild' so 'build' folder was successfully created before running this script. See https://github.com/bartholomej/svelte-sitemap#readme

I don't know what to do

danieleavolio avatar Mar 22 '22 20:03 danieleavolio

I’ve just tried installing this tool and I’m seeing the same issue. It’s definitely running after the build folder has been created so I’m not sure what’s going wrong.

sampsonpete avatar Mar 24 '22 11:03 sampsonpete

@samsonpete @danieleavolio Are you sure you are using adapter-static and prerender option in svelte kit?

I've just released a new version 2.5.0 and it has slightly more accurate error messages and documentation.

Also see this FAQ section

Please update svelte-sitemap library in your project and let me know if this is clear ;)

bartholomej avatar Mar 27 '22 11:03 bartholomej

I'm actually using the vercel adapter. Is there a way to make this working? The answer was for 21 November. Is this still working?

danieleavolio avatar Mar 28 '22 17:03 danieleavolio

I’m using the netlify adapter. Will try the new update when I get a chance, thanks.

sampsonpete avatar Mar 28 '22 19:03 sampsonpete

Closing for inactivity. If it doesn't work, just let me know, guys ;)

bartholomej avatar Apr 21 '23 13:04 bartholomej