We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I write:
import Gleap from 'gleap' Gleap.initialize('abc123')
I get the error:
Property 'initialize' does not exist on type 'typeof import("<omitted>/node_modules/gleap/index")'.
This seems to happen specifically if I have "type": "module" in package.json and "moduleResolution": "nodenext" in tsconfig.json.
"type": "module"
package.json
"moduleResolution": "nodenext"
tsconfig.json
Workaround I'm using for now:
import Gleap from 'gleap' const Gleap = GleapModule as any as typeof GleapNamespace Gleap.initialize('abc123')
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When I write:
I get the error:
This seems to happen specifically if I have
"type": "module"
inpackage.json
and"moduleResolution": "nodenext"
intsconfig.json
.Workaround I'm using for now:
The text was updated successfully, but these errors were encountered: