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

Support for react native typescript #94

Open
yunghog opened this issue Aug 8, 2022 · 0 comments
Open

Support for react native typescript #94

yunghog opened this issue Aug 8, 2022 · 0 comments

Comments

@yunghog
Copy link

yunghog commented Aug 8, 2022

When I try to import Exif using
import {Exifr} from 'exifr';
I get this error :

Error: node_modules/exifr/dist/full.umd.js:Invalid call at line 1: import(
/* webpackIgnore: true */
e)
    at transformJS (/Users/samarthahm/Projects/React-native/getExif/node_modules/metro-transform-worker/src/index.js:262:15)
    at transformJSWithBabel (/Users/samarthahm/Projects/React-native/getExif/node_modules/metro-transform-worker/src/index.js:410:16)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async Object.transform (/Users/samarthahm/Projects/React-native/getExif/node_modules/metro-transform-worker/src/index.js:571:12)
error: node_modules/exifr/dist/full.umd.js: node_modules/exifr/dist/full.umd.js:Invalid call at line 1: import(
/* webpackIgnore: true */
e)

When I try this
import * as Exifr from '../../../node_modules/exifr/dist/lite.legacy.umd'; // or any sort of this
I get this error :

TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[3], "./src/screens").Home')

How to use this library with react native typescript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant