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
RemoteAssets is not a function
TypeError: RemoteAssets is not a function
at file:///Users/fekioh/work/svelte/le-groupe-o/svelte.config.js:24:17
at ModuleJob.run (node:internal/modules/esm/module_job:175:25)
at async Loader.import (node:internal/modules/esm/loader:178:24)
at async load_config (file:///Users/fekioh/work/svelte/le-groupe-o/node_modules/@sveltejs/kit/dist/cli.js:502:17)
at async get_config (file:///Users/fekioh/work/svelte/le-groupe-o/node_modules/@sveltejs/kit/dist/cli.js:557:10)
at async file:///Users/fekioh/work/svelte/le-groupe-o/node_modules/@sveltejs/kit/dist/cli.js:615:18
When I do console.log(RemoteAssets) I get:
error while updating dependencies:
Error: Build failed with 4 errors:
node_modules/vite-plugin-remote-assets/dist/index.mjs:450:8: error: No matching export in "browser-external:path" for import "extname"
node_modules/vite-plugin-remote-assets/dist/index.mjs:450:17: error: No matching export in "browser-external:path" for import "relative"
node_modules/vite-plugin-remote-assets/dist/index.mjs:450:27: error: No matching export in "browser-external:path" for import "dirname"
node_modules/vite-plugin-remote-assets/dist/index.mjs:450:36: error: No matching export in "browser-external:path" for import "resolve"
at failureErrorWithLog (/Users/fekioh/work/svelte/le-groupe-o/node_modules/esbuild/lib/main.js:1443:15)
at /Users/fekioh/work/svelte/le-groupe-o/node_modules/esbuild/lib/main.js:1125:28
at runOnEndCallbacks (/Users/fekioh/work/svelte/le-groupe-o/node_modules/esbuild/lib/main.js:915:63)
at buildResponseToResult (/Users/fekioh/work/svelte/le-groupe-o/node_modules/esbuild/lib/main.js:1123:7)
at /Users/fekioh/work/svelte/le-groupe-o/node_modules/esbuild/lib/main.js:1230:14
at /Users/fekioh/work/svelte/le-groupe-o/node_modules/esbuild/lib/main.js:606:9
at handleIncomingPacket (/Users/fekioh/work/svelte/le-groupe-o/node_modules/esbuild/lib/main.js:703:9)
at Socket.readFromStdout (/Users/fekioh/work/svelte/le-groupe-o/node_modules/esbuild/lib/main.js:573:7)
at Socket.emit (node:events:365:28)
at Socket.emit (node:domain:470:12)
[Function: VitePluginRemoteAssets]
The text was updated successfully, but these errors were encountered:
@antfu Thanks for your quick response! FYI, I was trying to combine your plugin with vite-imagetools in order to apply vite-imagetools transformations to remote images.
See the discussion in the issue there. I'd be very interested to hear your take on the feasibility of such an attempt.
Hi, I am trying to set this up for a SvelteKit project. Any help would be greatly appreciated.
Below is my config file:
I am getting this error:
When I do
console.log(RemoteAssets)
I get:The text was updated successfully, but these errors were encountered: