We are using src/interface/paperSelect.interface.ts in our ci/cd pipeline to make sure that there are no unused variables etc. in our react native application.
This emits the following error:
> npx tsc --noEmit -p . --pretty
node_modules/react-native-paper-select/src/interface/paperSelect.interface.ts:4:32 - error TS2307: Cannot find module 'react-native-paper/lib/typescript/src/types' or its corresponding type declarations.
4 import type { ThemeProp } from 'react-native-paper/lib/typescript/src/types';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 1 error in node_modules/react-native-paper-select/src/interface/paperSelect.interface.ts:4
We are using V1.1.1 of react-native-paper-select, together with V5.12.3 of react-native-paper
If I change import type { ThemeProp } from 'react-native-paper/lib/typescript/src/types'; in paperSelect.interface.ts to import { ThemeProp } from 'react-native-paper/lib/typescript/types';, no compile error occurs anymore
We are using
src/interface/paperSelect.interface.ts
in our ci/cd pipeline to make sure that there are no unused variables etc. in our react native application.This emits the following error:
We are using V1.1.1 of
react-native-paper-select
, together with V5.12.3 ofreact-native-paper
If I change
import type { ThemeProp } from 'react-native-paper/lib/typescript/src/types';
inpaperSelect.interface.ts
toimport { ThemeProp } from 'react-native-paper/lib/typescript/types';
, no compile error occurs anymore