Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Unable to resolve module with graphql

$
0
0

I just cant put my finger on why I can't get access to this import from the .tsx file.I understand that it is because the import is a .js file but I'm unsure as to how to fix it.

import { getUser } from '../src/graphql/queries';

file names:importing file: queries.js

file importing into: loginScreenView.tsx

Here is the error:

Cannot find module '../src/graphql' or its corresponding type declarations.ts(2307)

Ive read online about ways of fixing it using a types.d.ts file but I dont know how to apply that.

Please help


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>