NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

error on nativebase 2.13.12 and expo 36.0.0 (REACT-NATIVE)

Open onurcskun opened this issue 6 years ago • 44 comments

Unable to resolve "@expo/vector-icons/Fontisto" from "node_modules/native-base/dist/src/basic/IconNB.js"

EDIT Downgrading 2.13.8 is an alternative solution:

onurcskun avatar Mar 17 '20 10:03 onurcskun

I have the same error, what solution is there?

node_modules/native-base/dist/src/basic/IconNB.js
Module not found: Can't resolve '@expo/vector-icons/Fontisto' in 'node_modules\native-base\dist\src\basic'

juandav avatar Mar 17 '20 14:03 juandav

Same issue here

Gregoirevda avatar Mar 17 '20 15:03 Gregoirevda

I did not find a solution for 2.13.12 but just downgraded version to 2.13.8 and its fine

onurcskun avatar Mar 17 '20 15:03 onurcskun

npm i --save-exact [email protected] Expo should release a version with that version

Gregoirevda avatar Mar 17 '20 15:03 Gregoirevda

npm i --save-exact [email protected] Expo should release a version with that version

I can't solve it with this

juandav avatar Mar 17 '20 16:03 juandav

@juandav try rm -rf node_modules && npm i

onurcskun avatar Mar 17 '20 17:03 onurcskun

@juandav try rm -rf node_modules && npm i

TypeError: _utils.ViewPropTypes is undefined on this version

juandav avatar Mar 17 '20 17:03 juandav

@juandav try rm -rf node_modules && npm i

@onurcskun, it is not working on the web:

expo start --web

but, if you install [email protected], this works. require [email protected]

juandav avatar Mar 17 '20 17:03 juandav

I am also facing this issues. Downgraded the nativebase version as adivised by @onurcskun , removed node_modules and ran watchmen watch-de-all but the issue is still persisting. I am using Expo SDK 36

ceessay avatar Mar 18 '20 16:03 ceessay

I can confirm this too.

hirbod avatar Mar 18 '20 19:03 hirbod

I did not find a solution for 2.13.12 but just downgraded version to 2.13.8 and its fine

It worked for me too, I downgraded it to 2.13.8. Thanks for the tip @Gregoirevda

lordjack avatar Mar 18 '20 23:03 lordjack

https://github.com/expo/vector-icons/issues/112

juandav avatar Mar 19 '20 03:03 juandav

https://github.com/expo/vector-icons/pull/126

juandav avatar Mar 19 '20 03:03 juandav

Same here, using a tab example app generated by expo and latest version of React Native.

I managed to solve it with the following steps:

  • npm uninstall react-native --save
  • Delete node_modules folder
  • npm i [email protected] --save
  • npm i

Restart Android emulator, restart expo (npm start), and it works! Thanks @onurcskun!

DavidCorral94 avatar Mar 19 '20 09:03 DavidCorral94

npm i --save-exact [email protected] Expo should release a version with that version

It's work for me, thank

clackken avatar Mar 19 '20 22:03 clackken

npm i --save-exact [email protected] Expo should release a version with that version

Worked for me

ZzAth avatar Mar 21 '20 15:03 ZzAth

Actually i have solved this issue on my forked repo of expo vector icons

Kaushald4 avatar Mar 21 '20 19:03 Kaushald4

I did not find a solution for 2.13.12 but just downgraded version to 2.13.8 and its fine

it didn't work for me

jeanniton-mnr avatar Mar 23 '20 05:03 jeanniton-mnr

npm i --save-exact [email protected] Expo should release a version with that version

Worked for me

what version of expo do you have?

jeanniton-mnr avatar Mar 23 '20 05:03 jeanniton-mnr

I had to edit IconNB.js and block comment on the importation of the icons from this module.

NB: The error I was getting and note also it is a temporary fix:
bundling failed: Error: Unable to resolve module @expo/vector-icons/Fontisto from node_modules/native-base/dist/src/basic/IconNB.js (file to edit): @expo/vector-icons/Fontisto could not be found within the project.

Cons:

  1. You might have to edit this file at every npm install.
  2. You might not be able to use this module, IconNB.js

Screen Shot 2020-03-23 at 14 55 37

jeanniton-mnr avatar Mar 23 '20 18:03 jeanniton-mnr