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 parsing a Svelte component that imports paths with an alias (paths defined in tsconfig.json) such as $lib, Sveld cannot substitute the correct path.
Example:
Given an import path:
import ExampleComponent from '$lib/components/ExampleComponent.svelte';
results into error:
[Error: ENOENT: no such file or directory, open '/Users/xyz/Documents/example-project/src/lib/$lib/components/ExampleComponent.svelte']
QuickFix:
I added the following two lines to line 108 in sveld/lib/parse-export.js
When parsing a Svelte component that imports paths with an alias (paths defined in tsconfig.json) such as $lib, Sveld cannot substitute the correct path.
Example:
Given an import path:
import ExampleComponent from '$lib/components/ExampleComponent.svelte';
results into error:
[Error: ENOENT: no such file or directory, open '/Users/xyz/Documents/example-project/src/lib/$lib/components/ExampleComponent.svelte']
QuickFix:
I added the following two lines to line 108 in sveld/lib/parse-export.js
The text was updated successfully, but these errors were encountered: