Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Fix export issue #146

Conversation

grantwwu
Copy link
Contributor

When re-exporting like this, I get this error message when I try to
invoke core.logger:

Cannot invoke an expression whose type lacks a call signature. Type 'typeof import("/file/path/censored/node_modules/@opencensus/core/build/src/common/console-logger")' has no compatible call signatures.

My theory is that using a default import for this breaks type signatures.

When re-exporting like this, I get this error message when I try to
invoke core.logger:

Cannot invoke an expression whose type lacks a call signature. Type 'typeof import("/file/path/censored/node_modules/@opencensus/core/build/src/common/console-logger")' has no compatible call signatures.

My theory is that using a default import for this breaks type
signatures.
@grantwwu
Copy link
Contributor Author

Reviewing the CI logs, it seems that maybe the bug was actually in the example code and not the library code. Will investigate further on Monday.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants