8000 Getting error TS2305: Module has no exported member, but the member is exported · Issue #1184 · jaredpalmer/tsdx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Getting error TS2305: Module has no exported member, but the member is exported #1184
Open
@sebastianmontero

Description

@sebastianmontero

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0