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
If a symbol from a .svelte.js file is selected from a suggestion dropdown in VS Code, the added import lacks the .js extension.
If the extension is missing, this can cause conflicts with components that share the prefix, it also is plain confusing to the uninitiated since it looks like a component is being imported.
Proposed solution
Always import as .svelte.js, not sure if this is possible though.
(Maybe use .svelte.ts if state of TS's allowImportingTsExtensions can be detected.)
Alternatives
No response
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered:
Description
If a symbol from a
.svelte.js
file is selected from a suggestion dropdown in VS Code, the added import lacks the.js
extension.If the extension is missing, this can cause conflicts with components that share the prefix, it also is plain confusing to the uninitiated since it looks like a component is being imported.
Proposed solution
Always import as
.svelte.js
, not sure if this is possible though.(Maybe use
.svelte.ts
if state of TS'sallowImportingTsExtensions
can be detected.)Alternatives
No response
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: