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
[remix] Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. Received protocol 'socket:'
✓ built in 134ms
Error [PLUGIN_ERROR]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. Received protocol 'socket:'
at throwIfUnsupportedURLScheme (node:internal/modules/esm/load:236:11)
at defaultLoad (node:internal/modules/esm/load:128:3)
at ModuleLoader.load (node:internal/modules/esm/loader:409:13)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:291:56)
at new ModuleJob (node:internal/modules/esm/module_job:65:26)
at #createModuleJob (node:internal/modules/esm/loader:303:17)
at ModuleLoader.getJobFromResolveResult (node:internal/modules/esm/loader:260:34)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:241:17)
at async ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:21) {
code: 'PLUGIN_ERROR',
pluginCode: 'ERR_UNSUPPORTED_ESM_URL_SCHEME',
plugin: 'remix',
hook: 'writeBundle'
}
Before Remix moved to vite, there used to be an option to mark dependencies as external, but I don't see any option for that with the new vite setup.
Is this possible to configure Remix SPA to work with external imports?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm migrating an app from react-router to Remix SPA.
Previously in my vite config I could configure external dependencies:
I tried to do the same with remix:
but it throw the following error on build:
Before Remix moved to vite, there used to be an option to mark dependencies as external, but I don't see any option for that with the new vite setup.
Is this possible to configure Remix SPA to work with external imports?
Beta Was this translation helpful? Give feedback.
All reactions