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

Getting error TS2305: Module has no exported member, but the member is exported #1184

Open
sebastianmontero opened this issue Jun 22, 2023 · 0 comments

Comments

@sebastianmontero
Copy link

Current Behavior

I'm getting "TS2305: Module has no exported member" error when buliding the project, but the module does export the member. Strangest of all is that I have 2 typescript files in the same folder, in one file the import works without any issue, in the other I get the mentioned above error. The only way I've been able to solve the issue in the file with the error is adding the full path to file that exports the member so instead of this:

import {
  Filter,
} from 'nostr-tools';

I have to put this:

import {
  Filter,
} from 'nostr-tools/lib/filter';

In the other file I have the first import and it works.

Expected behavior

I should be able to import the class without specifying the whole path.

Your environment


 System:
    OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
    Memory: 13.07 GB / 31.06 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 18.15.0 - ~/.nvm/versions/node/v18.15.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.15.0/bin/yarn
    npm: 9.5.0 - ~/.nvm/versions/node/v18.15.0/bin/npm
  Browsers:
    Brave Browser: 114.1.52.126
    Chrome: 114.0.5735.133
  npmPackages:
    tsdx: ^0.14.1 => 0.14.1 
    typescript: ^4.9.4 => 4.9.4 

Any Ideas of what could be the issue?

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

1 participant