Closed Ranily57 closed 1 year ago
Good catch on that invalid path.
I have just published a new version fixing it altho I don't think it should have an impact due to the hacky Vite shenanigans that this integration is doing (which may be why the prod example is building fine, my local repo is building fine too and I also tried setting up a new project and installing the extension and it worked too).
Could you give this new version a try and see if it fixes the issue for you for some reasons I don't understand yet 🤔
Still having the same error, here is the check i did:
I saw this on my Visual Studio Code, it's the _Page.astro from your module, and it looks like he don't find the file, but as i said, i verified the path and it's good
I tried too with another file like astro.config.mjs
It work, no error so i feel like it's from the module but for no reason he do not find it
Is your project available publicly or would you be able to push a repro to GitHub so I can take a look?
Yes sure you can get on the Repo it's on the dev branch, the master one is for preview and the main one for production.
Hmmm, this works for me. Could you try deleting the .astro
directory you have locally and building again?
Still the same error 🤔
I do reinstall the node_module
but still break
Weird that a fresh clone + git switch dev
+ pnpm i
+ pnpm build
works for me 🤔 For sanity, could you try a fresh clone in a new directory even tho I don't think it would fix anything.
The only idea I have left is looking at your screenshot, you seem to be on Windows so maybe it could be OS related even tho I don't have any idea why right now and don't have any Windows machine at the moment to test it.
Still having the same error
I don't really understand what is the trouble 🤔 Windows never did this before and it's only when i installed the blog module. I'll try it on linux and i'll tell you if i get the same trouble
Allright it's Windows, so it's not the module 👍
I'll check maybe how to solve this issue to keep working on windows on my repo. Thank's for your help, i'll continue working on the blog 😄
Allright it's Windows, so it's not the module 👍
Good to know, thanks for following up. If I get the time with a Windows machine at my disposal, I'll try to see what is causing the issue.
Something to note, the Vite "hacks" that this integration is using should go away when component customization lands in Starlight so that should automatically fix the issue.
Good luck on your blog posts and documentation. When you are done and if you want, to not hesitate to add your website to the Starlight showcase.
Describe the bug
Starlight Astro get his Page.astro in "Layout" and not "Layouts"
To Reproduce
Expected behavior
I expect to the website to build
How often does this bug happen?
Every time
System Info
No response
Additional Context
Here is the code i saw
starlight.d.ts
idk where else it is but when i change the path, i keep getting the error