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

Failed to import - [email protected] #593

Closed
etodanik opened this issue Apr 16, 2023 · 0 comments
Closed

Failed to import - [email protected] #593

etodanik opened this issue Apr 16, 2023 · 0 comments
Labels
deno Not working in Deno

Comments

@etodanik
Copy link

Failing module

import { eventChannel } from "https://esm.sh/[email protected]";

Error message

After running deno run I got this:

error: TS2614 [ERROR]: Module '"https://esm.sh/v113/[email protected]/index.d.ts"' has no exported member 'eventChannel'. Did you mean to use 'import eventChannel from "https://esm.sh/v113/[email protected]/index.d.ts"' instead?
import { eventChannel } from "https://esm.sh/[email protected]";

Additional info

I used to fix it by doing:

// @deno-types="../redux-saga.d.ts"
import { eventChannel } from "redux-saga";

And then in that file:

declare module "redux-saga" {
  import createSagaMiddleware from "https://esm.sh/v91/@redux-saga/[email protected]/types/index.d.ts";
  export * from "https://esm.sh/v91/@redux-saga/[email protected]/types/index.d.ts";
  export default createSagaMiddleware;
}

But now this doesn't work (even though I kept it hardcoded to v91 of esm.sh.

  • esm.sh version: It used to work on v91, but stopped magically
  • Deno version: deno 1.32.3 (release, x86_64-unknown-linux-gnu)
@etodanik etodanik added the deno Not working in Deno label Apr 16, 2023
@etodanik etodanik changed the title Failed to import - Failed to import - [email protected] Apr 16, 2023
@ije ije closed this as completed in 9df0c74 Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deno Not working in Deno
Projects
None yet
Development

No branches or pull requests

1 participant