Skip to content
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

svelte-kit, typescript, error: "The requested module does not provide an export name" #340

Closed
frederikhors opened this issue Apr 6, 2021 · 2 comments

Comments

@frederikhors
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I'm using Svelte Kit and the amazing protobuf-ts.

I'm having this error:

image

As @timostamm noted this error is due to this new svelte-preprocess's Typescript limitation.

But that makes it frustrating if not impossible to work with libraries like @timostamm's amazing one.

Describe the solution you'd like
I don't know! :(

Describe alternatives you've considered
I tried to change and remove .tsconfig's importsNotUsedAsValues prop but the error is still there.

How important is this feature to you?
I'm pretty worried.

We CANNOT change each generated file every time we re-generate.

Additional context
This is the example repo: https://github.com/frederikhors/protobuf-ts-issue-94.

I'm using Win 10 64, node v14.16.0, npm v7.8.0.

Steps to reproduce:

  • clone it with git clone https://github.com/frederikhors/protobuf-ts-issue-94.git

  • npm install

  • npm run dev -- --open

  • click on "Protobuf" top menu link

  • the error shows up

Please HELP ME!

@bluwy
Copy link
Member

bluwy commented Sep 4, 2021

Should be fixed by #392

@dummdidumm
Copy link
Member

Seems like the issue was with the autogenerated file not using import type where needed (type-only imports) and that issue was fixed in the library. Therefore this should be closed.

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

No branches or pull requests

4 participants