Closed iivvaannxx closed 1 year ago
Hey @iivvaannxx! Looks like @siguici might have fixed your issue here, if you could try 0.1.15 which was just released.
I can confirm that the project now can start the development server after astro dev
. However, even though the pages seem to be correctly resolved it doesn’t seem to be the case with the Qwik generated files. See below:
I can’t reopen the issue so probably someone should as it’s not totally fixed. Thanks for the initial fix @siguici!
Also, now it seems everything works as it should without manually installing fs-extra
.
The reproducible example is the same as the one of the original issue.
can you send us a link of your stackblitz?
can you send us a link of your stackblitz?
Sorry, I said that it was the same as before but I just noticed that it didn’t get saved. I saved it: Link: https://stackblitz.com/edit/github-ubg8bv-n78dxb?file=package.json
Edit: It was still the same, don’t know why, anyways, I forked it and now it’s updated as the screenshot.
0.1.18 should fix this
I did a quick test and indeed it's solved! Thanks both @siguici and @thejackshelton! I'll tell something if I run into some weird edge case or something.
Problem
The issue is actually very simple, I usually like to name my
src
dirsource
because I prefer it that way. Astro offers the possibility to change the source directory with itssrcDir
config property, and that's what i have:But as soon as I try to start developing I face this error:
Additional Information
I tried hooking a
console.log
to see if the foillowing code (from the integration) correctly resolves the path:And it actually does it resolve correctly to
source
so I guess the error is somewhere else.Reproduction
Minimal Repro: https://stackblitz.com/edit/github-ubg8bv
A couple of things I noticed while setting up the reproduction example, which may be worth to look at are that, from a brand new Astro empty template and following the docs installation I got a random error:
Which I fixed by manually installing
fs-extra
(I actually didn't need to do this in my local project so I don't understand why it happenededit: It just happened too). And, after creating a simpleCounter
component (like in the docs) I received also this error:This fixed itself after reloading the dev server (I think). After those I finally received the error I mention in this issue about the
srcDir
.