#Change Framework Component import path

2 messages · Page 1 of 1 (latest)

terse depot
#

I have a bit of a weird setup where I'm building static HTML pages with Astro and then all the pages and assets go on a server with nginx that serves the HTML from one location and the static assets (scripts, CSS, etc) from another.

This is causing the Svelte components (using client:only="svelte" ) to fail to be imported from the {site}/{base} path set in the config.

I see these errors in the console, from the <astro-island> code:

Uncaught (in promise) TypeError: Failed to fetch dynamically imported module:

And a 404 for the files listed in the component-url and renderer-url of the <astro-island>.

Is it possible to change or define a different base for these?

Dependency versions:

"@astrojs/svelte": "^1.0.1",
"astro": "^1.4.4",
"svelte": "^3.50.1"
vale pumice
#

Hi! Did you get the problem related to asset source and client:only="svelte" resolved? I'm facing the same problem right now.