latest version of the package failed to compile
Cavdy opened this issue · 2 comments
Cavdy commented
jaydenseric commented
Hello, most likely you need to update your imports from apollo-upload-client
to be deep imports, as per the v18 changelog entry major changes:
https://github.com/jaydenseric/apollo-upload-client/releases/tag/v18.0.0
Removed the package main index module; deep imports must be used. To migrate:
- import { - createUploadLink, - formDataAppendFile, - isExtractableFile - } from "apollo-upload-client"; + import createUploadLink from "apollo-upload-client/createUploadLink.mjs"; + import formDataAppendFile from "apollo-upload-client/formDataAppendFile.mjs"; + import isExtractableFile from "apollo-upload-client/isExtractableFile.mjs";
Cavdy commented
In order for the new import to work for me, I had to add the below code to my metro.config.js
defaultConfig.resolver.sourceExts.push('mjs');