Accordion-Collapse-react-native icon indicating copy to clipboard operation
Accordion-Collapse-react-native copied to clipboard

warning import

Open secodigo opened this issue 4 years ago • 7 comments

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)

secodigo avatar Mar 03 '20 13:03 secodigo

Same issue here

foundationx avatar Mar 26 '21 23:03 foundationx

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

brandonra97 avatar Apr 30 '21 10:04 brandonra97

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';

brandonra97 avatar Apr 30 '21 10:04 brandonra97

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!

f1sh1918 avatar Oct 18 '21 22:10 f1sh1918

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.

oreyes1991 avatar Nov 19 '21 16:11 oreyes1991

@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.

marouanekadiri avatar Nov 19 '21 16:11 marouanekadiri

@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

AlexanderLanderos avatar Aug 08 '22 18:08 AlexanderLanderos