Skip to content

Importing external interfaces fails #153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
NickClark opened this issue May 20, 2020 · 0 comments
Closed

Importing external interfaces fails #153

NickClark opened this issue May 20, 2020 · 0 comments

Comments

@NickClark
Copy link

If I try to import a TypeScript interface from from an external TS file, I get the following error:

Error: '<my interface>' is not exported by <my interface file>.ts, imported by <my component>.svelte

To Reproduce
Try to import an interface into a Svelte Component when using svelte-preprocess. I'm also using the TypeScript plugin as it seems that svelte-preprocess doesn't process plain TS files.

Expected behavior
I should be able to reference interfaces from external files.

Information about your project:

  • svelte-preprocess version: 3.7.4

  • Whether your project uses Webpack or Rollup: Rollup

halfnelson added a commit to halfnelson/svelte-preprocess that referenced this issue Jun 5, 2020
should fix sveltejs#153
use first param of emit to only emit for the actual source file
kaisermann pushed a commit to halfnelson/svelte-preprocess that referenced this issue Jun 6, 2020
should fix sveltejs#153
use first param of emit to only emit for the actual source file
kaisermann pushed a commit to halfnelson/svelte-preprocess that referenced this issue Jun 6, 2020
should fix sveltejs#153
use first param of emit to only emit for the actual source file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant