arnoson / kirby-vite-multi-page-kit

A multi-page Kirby CMS + Vite starter kit
MIT License
37 stars 6 forks source link

Dev server throws an error before first build #12

Closed isUnknown closed 1 year ago

isUnknown commented 1 year ago

The dist folder doesn't exist yet before the first build so the dev server throws an error, trying to find the manifest.json.

 Exception
manifest.json not found.

You could provide a default dist folder or at least indicate to first run a build before running the dev server.

arnoson commented 1 year ago

Thats' strange, the manifest and dist folder shouldn't be needed at all during development. Does the error occur after you run npm run dev? I'm travelling right now, but will look into this next week.

isUnknown commented 1 year ago

Yep, after running npm run dev. I had more informations but unfortunatly I removed the clone, it was just a little try. I remember that a line of code was trying to find the dist/ folder.

arnoson commented 1 year ago

I could reproduce your error, thanks for the good catch! I added a feature recently to check if a template entry exists. This feature tried to access the manifest.json during development and caused the error. Because this feature also caused other problems I dropped the approach in favour of a more verbose but also more flexible way of including template entries.