You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Astro throws the following error if there's an empty astro.config.js file present or if the config file doesn't have a default export.
TypeError: Cannot convert object to primitive value
at resolveExtensions (file:///Users/fks/Code/astro/node_modules/.pnpm/@[email protected]/node_modules/@proload/core/lib/esm/index.mjs:103:71)
at load (file:///Users/fks/Code/astro/node_modules/.pnpm/@[email protected]/node_modules/@proload/core/lib/esm/index.mjs:197:31)
at async loadConfig (file:///Users/fks/Code/astro/packages/astro/dist/core/config.js:101:18)
at async cli (file:///Users/fks/Code/astro/packages/astro/dist/cli/index.js:109:14)
No error is thrown if there's no astro.config.js file present.
Describe the Bug
Astro throws the following error if there's an empty
astro.config.js
file present or if the config file doesn't have a default export.No error is thrown if there's no
astro.config.js
file present.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-tz7qbv?file=astro.config.mjs&on=stackblitz
The text was updated successfully, but these errors were encountered: