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

Could not find a declaration file for module 'react-native-klarna-inapp-sdk'. #230

Open
devapalanisamy opened this issue Dec 10, 2023 · 2 comments

Comments

@devapalanisamy
Copy link

Could not find a declaration file for module 'react-native-klarna-inapp-sdk'. '/Users/deva/Desktop/delete_me/AwesomeApp/node_modules/react-native-klarna-inapp-sdk/src/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/react-native-klarna-inapp-sdk if it exists or add a new declaration (.d.ts) file containing declare module 'react-native-klarna-inapp-sdk';ts(7016)

To Reproduce
Steps to reproduce the behavior:

  1. Create new react native project
  2. import KlarnaPaymentView in any View
  3. You will see the above error
@devapalanisamy
Copy link
Author

Looks like the issue is wrong path in package.json
Should be:

"types": "lib/typescript/src/index.d.ts",

@NMGuner
Copy link
Member

NMGuner commented Jan 2, 2024

Hi @devapalanisamy, we have updated the library with lot of changes including a change to how we build and declare types. Can you please try the latest version and let us know if it resolves this

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

2 participants