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
The chunk directory used by JS components (Solid, Svelte, etc) is not being generated on build step when Astro.glob() or import.meta.glob() is used, causing 404 errors in the browser:
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (web.6fe5bcb6.js, line 0)
Additionally, the build command does not throw any error messages:
> [email protected] build
> astro build
01:56:58 PM [build] output target: static
01:56:58 PM [build] Collecting build info...
01:56:58 PM [build] Completed in 22ms.
01:56:58 PM [build] Building static entrypoints...
01:56:59 PM [build] Completed in 1.13s.
building client
Completed in 140ms.
generating static routes
▶ src/pages/index.astro
└─ /index.html (+15ms)
Completed in 19ms.
01:56:59 PM [build] 1 page(s) built in 1.32s
01:56:59 PM [build] Complete!
I am willing to submit a pull request for this issue.
The text was updated successfully, but these errors were encountered:
pilcrowonpaper
changed the title
Astro.glob() or import.meta.glob() breaks client side JS componentsAstro.glob() and import.meta.glob() breaks client side JS components
Dec 18, 2022
What version of
astro
are you using?1.7.1
Are you using an SSR adapter? If so, which one?
none
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
Issue from
1.7.0
. No issue<=1.6.15
.The
chunk
directory used by JS components (Solid, Svelte, etc) is not being generated on build step whenAstro.glob()
orimport.meta.glob()
is used, causing 404 errors in the browser:Additionally, the build command does not throw any error messages:
Tested with Svelte and Solid.
Link to Minimal Reproducible Example
https://github.com/pilcrowOnPaper/astro-chunk-repro
Participation
The text was updated successfully, but these errors were encountered: