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

warning import #31

Open
secodigo opened this issue Mar 3, 2020 · 7 comments
Open

warning import #31

secodigo opened this issue Mar 3, 2020 · 7 comments
Labels
help wanted Extra attention is needed

Comments

@secodigo
Copy link

secodigo commented Mar 3, 2020

Could not find a declaration file for module 'accordion-collapse-react-native'. '/home/rodrigo/neofontes/mobile/trunk/neocorp/node_modules/accordion-collapse-react-native/build/index.js' implicitly has an 'any' type.
Try npm install @types/accordion-collapse-react-native if it exists or add a new declaration (.d.ts) file containing declare module 'accordion-collapse-react-native';ts(7016)

@marouanekadiri marouanekadiri added the help wanted Extra attention is needed label May 21, 2020
@foundationx
Copy link

Same issue here

@brandonra97
Copy link

I have the same issue, is this not being addressed?

@brandonra97
Copy link

I fixed this issue by creating a "index.d.ts." file inside the "accordion-collapse-react-native" folder in the project's 'node_module" folder. The file should have the following line in it:

declare module 'accordion-collapse-react-native';

@f1sh1918
Copy link
Contributor

f1sh1918 commented Oct 18, 2021

Just created a pull request that generates the index.d.ts file to fix that issues.
Would be nice if you find time to take a look at it @marouanekadiri
thx for your nice work!

@oreyes1991
Copy link

this issue still exists. What a shame, I liked this package but I can't use it since the project I'm working on is TypeScript, and this small issue would fail the lint pipeline.

@marouanekadiri
Copy link
Owner

@oreyes1991 Just add this declare module 'accordion-collapse-react-native'; into a .d.ts file in the root folder of your project and the pipeline will not break anymore.

@AlexanderLanderos
Copy link

@marouanekadiri Creating the .d.ts in the root still presents and issue and causes the build pipe line to break. Would declaring the components in the package be something in the works? Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants