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
When creating and running a bare project in a folder where an apostrofe is in the path it throws an import analysis error.
For example in a folder such as: D:\TestRepo's\svelte-app
Renaming the folder to remove the apostrofe will remove the error and allows the project to run again.
See logs for more information.
Reproduction
Any svelte-kit project where the pathname contains an apostrofe. Other characters were not tested.
Logs
23:48:26 [vite] Internal server error: Failed to parse sourcefor import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension.
Plugin: vite:import-analysis
File: D:/TestRepo's/appie/.svelte-kit/generated/root.svelte:783:1015 781| } 782| 783| import * as ___SVELTE_HMR_HOT_API from 'D:/TestRepo's/appie/node_modules/svelte-hmr/runtime/hot-api-esm.js';import { adapter as ___SVELTE_HMR_HOT_API_PROXY_ADAPTER } from 'D:/TestRepo's/appie/node_modules/svelte-hmr/runtime/proxy-adapter-dom.js';if (import.meta && import.meta.hot) { if (false) import.meta.hot.acceptExports(['default']);; Root = ___SVELTE_HMR_HOT_API.applyHmr({ m: import.meta, id: "D:/TestRepo's/appie/.svelte-kit/generated/root.svelte", hotOptions: {"preserveLocalState":false,"noPreserveStateKey":["@hmr:reset","@!hmr"],"preserveAllLocalStateKey":"@hmr:keep-all","preserveLocalStateKey":"@hmr:keep","noReload":false,"optimistic":false,"acceptNamedExports":true,"acceptAccessors":true,"injectCss":false,"cssEjectDelay":100,"native":false,"importAdapterName":"___SVELTE_HMR_HOT_API_PROXY_ADAPTER","noOverlay":true,"allowLiveBinding":false,"partialAccept":true}, Component: Root, ProxyAdapter: ___SVELTE_HMR_HOT_API_PROXY_ADAPTER, acceptable: true, preserveLocalState: false, emitCss: true, }); } | ^ 784| export default Root; 785| at formatError (file:///D:/TestRepo's/appie/node_modules/vite/dist/node/chunks/dep-75f53616.js:43944:46) at TransformContext.error (file:///D:/TestRepo's/appie/node_modules/vite/dist/node/chunks/dep-75f53616.js:43940:19) at TransformContext.transform (file:///D:/TestRepo's/appie/node_modules/vite/dist/node/chunks/dep-75f53616.js:41693:22) at async Object.transform (file:///D:/TestRepo's/appie/node_modules/vite/dist/node/chunks/dep-75f53616.js:44234:30) at async loadAndTransform (file:///D:/TestRepo's/appie/node_modules/vite/dist/node/chunks/dep-75f53616.js:54901:29) at async viteTransformMiddleware (file:///D:/TestRepo's/appie/node_modules/vite/dist/node/chunks/dep-75f53616.js:64296:32) (x2)
Describe the bug
When creating and running a bare project in a folder where an apostrofe is in the path it throws an import analysis error.
For example in a folder such as: D:\TestRepo's\svelte-app
Renaming the folder to remove the apostrofe will remove the error and allows the project to run again.
See logs for more information.
Reproduction
Any svelte-kit project where the pathname contains an apostrofe. Other characters were not tested.
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: