Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Fix the error when importing TypeScript files in Svelte files #285

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kissge
Copy link

@kissge kissge commented Feb 19, 2022

As was reported in #244, when using the current template, importing a TypeScript file in Svelte files, e.g.

import { foo } from './utility';

causes this error:

[!] Error: Unexpected token (Note that you need plugins to import files that are not JavaScript)

Although the fix in this PR works, another workaround is posted on the issue, which might fit better.

Fix #244.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Typescript in .ts files throws error
1 participant