WrathChaos / react-native-apple-card-views

Customizable and perfect clone of Apple, App Store Card Views for React Native.
https://www.freakycoder.com
MIT License
402 stars 25 forks source link

missing declaration file? #46

Closed radkin closed 1 year ago

radkin commented 1 year ago

How to reproduce: npm i --save-dev @types/react-native-apple-header

_TS7016: Could not find a declaration file for module 'react-native-apple-header'. ../node_modules/react-native-apple-header/build/dist/AppleHeader.js' implicitly has an 'any' type.   Try npm i --save-dev @types/react-native-apple-header if it exists or add a new declaration (.d.ts) file containing declare module 'react-native-apple-header';

I followed the instructions here and there is no longer a complaint. Not sure if this is a bug or a problem with my local set up. Could be related to my react-native v0.71.1 and the npm looks to be for react-native v0.68.1

More npm output:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: react-native-apple-card-views@2.2.0
npm ERR! Found: react-native@0.71.1
npm ERR! node_modules/react-native
npm ERR!   peer react-native@">=0.41.2" from react-native-androw@0.0.34
npm ERR!   node_modules/react-native-androw
npm ERR!     react-native-androw@">= 0.0.33" from react-native-apple-card-views@2.2.0
npm ERR!     node_modules/react-native-apple-card-views
npm ERR!       react-native-apple-card-views@"^2.2.0" from the root project
npm ERR!     react-native-androw@"^0.0.34" from the root project
npm ERR!   peer react-native@">= 0.55.x" from react-native-apple-header@0.1.1
npm ERR!   node_modules/react-native-apple-header
npm ERR!     react-native-apple-header@"^0.1.1" from react-native-apple-card-views@2.2.0
npm ERR!     node_modules/react-native-apple-card-views
npm ERR!       react-native-apple-card-views@"^2.2.0" from the root project
npm ERR!   3 more (react-native-linear-gradient, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-native@"^0.68.1" from react-native-apple-card-views@2.2.0
npm ERR! node_modules/react-native-apple-card-views
npm ERR!   react-native-apple-card-views@"^2.2.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react-native@0.68.5
npm ERR! node_modules/react-native
npm ERR!   peer react-native@"^0.68.1" from react-native-apple-card-views@2.2.0
npm ERR!   node_modules/react-native-apple-card-views
npm ERR!     react-native-apple-card-views@"^2.2.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See .npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! .npm/_logs/2023-01-26T00_13_45_393Z-debug-0.log
WrathChaos commented 1 year ago

Hello @radkin

This is not about this library but it's version 1 is released :) It should fix the error.

Please check it out!