Currently, I am developing a React Native application.
In an attempt to enhance my application, I decided to incorporate the npm package available at this link: https://github.com/MagicTheGathering/mtg-sdk-javascript/
Despite trying various import statements like import { card } from 'mtgsdk';
, none seem to be working as intended.
The error that keeps popping up is as follows:
TransformError: /myproject/node_modules/mtgsdk/lib/index.js: Couldn't find preset "es2015" relative to directory /myproject/node_modules_mtgsdk
I am seeking guidance on the correct method of importing this package into my project. What aspect am I missing in terms of imports within javascript?