Skip to content

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

Closed
@frederikhors

Description

@frederikhors

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions