Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Fixed bug with filename #52

Merged
merged 1 commit into from
Sep 10, 2019
Merged

Fixed bug with filename #52

merged 1 commit into from
Sep 10, 2019

Conversation

giannismacheras
Copy link
Contributor

@giannismacheras giannismacheras commented Sep 10, 2019

After updating to version 2.0.0, I could not build the app due to this error:

error While trying to resolve module react-navigation-material-bottom-tabs from file [FILE PATH], the package [PATH]/node_modules/react-navigation-material-bottom-tabs/package.json was successfully found. However, this package itself specifies a main module field that could not be resolved ([PATH]/node_modules/react-navigation-material-bottom-tabs/src/index.js. > Indeed, none of these files exist:

  • /home/giannis/Desktop/Programming/Randomizer/node_modules/react-navigation-material-bottom-tabs/src/index.js(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
  • /home/giannis/Desktop/Programming/Randomizer/node_modules/react-navigation-material-bottom-tabs/src/index.js/index(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx). Run CLI with --verbose flag for more details.

After this change the app is built as expected.

OS: Ubuntu
React Native version: 0.60.5

After updating to version 2.0.0, I could not build the app due to this error: 
> error While trying to resolve module `react-navigation-material-bottom-tabs` from file `[FILE PATH]`, the package `[PATH]/node_modules/react-navigation-material-bottom-tabs/package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`[PATH]/node_modules/react-navigation-material-bottom-tabs/src/index.js`. > Indeed, none of these files exist:

>  * `/home/giannis/Desktop/Programming/Randomizer/node_modules/react-navigation-material-bottom-tabs/src/index.js(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)`
>  * `/home/giannis/Desktop/Programming/Randomizer/node_modules/react-navigation-material-bottom-tabs/src/index.js/index(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)`. Run CLI with --verbose flag for more details.
@satya164
Copy link
Member

Oops. Thanks

@satya164 satya164 merged commit 4049e49 into react-navigation:master Sep 10, 2019
@giannismacheras giannismacheras deleted the patch-1 branch September 10, 2019 17:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants