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.
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:
I have to put this:
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
Any Ideas of what could be the issue?