You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Trying to link, getting a font error. Result of "undefined is not an object" imagepicker error #25115
I have added some fonts to my project. Now, I'm trying to get an ImagePicker working but it seems it requires me to "link" the project, I don't really know what that means. However, when I go to run react-native link, I'm getting this error:
rnpm-install ERR! Something went wrong while linking. Error: Attempt to change mapping for "otf" extension from "font/otf" to "font/opentype". Pass force=true to allow this, otherwise remove "otf" from the list of extensions for "font/opentype".
Please file an issue here: https://github.com/facebook/react-native/issues
Attempt to change mapping for "otf" extension from "font/otf" to "font/opentype". Pass force=true to allow this, otherwise remove "otf" from the list of extensions for "font/opentype".
Error: Attempt to change mapping for "otf" extension from "font/otf" to "font/opentype". Pass `force=true` to allow this, otherwise remove "otf" from the list of extensions for "font/opentype".
at Mime.define (C:\Users\Takkeezi\Documents\react native\Fable\node_modules\mime\Mime.js:54:15)
at Object.<anonymous> (C:\Users\Takkeezi\Documents\react native\Fable\node_modules\react-native\local-cli\link\groupFilesByType.js:18:6)
at Module._compile (internal/modules/cjs/loader.js:759:30)
at Module._compile (C:\Users\Takkeezi\Documents\react native\Fable\node_modules\pirates\lib\index.js:99:24)
at Module._extensions..js (internal/modules/cjs/loader.js:770:10)
at Object.newLoader [as .js] (C:\Users\Takkeezi\Documents\react native\Fable\node_modules\pirates\lib\index.js:104:7)
at Module.load (internal/modules/cjs/loader.js:628:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
at Module.require (internal/modules/cjs/loader.js:666:19)
at require (internal/modules/cjs/helpers.js:16:16)
I've tried react-native link forced=true but that has the same result.
I had to change @react-native-community/cli/command/link/groupFilesByType.js where it called _mime().default.define and add a true as the second parameter.
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.
Activity
johnwnowlin commentedon Jun 19, 2019
I had to change @react-native-community/cli/command/link/groupFilesByType.js where it called _mime().default.define and add a true as the second parameter.
stale commentedon Sep 17, 2019
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.
stale commentedon Sep 24, 2019
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.