From aeda1042c8a632de0d2eabcdcbf922ae2c4239c2 Mon Sep 17 00:00:00 2001 From: LuckyLuke19 <45518626+LuckyLuke19@users.noreply.github.com> Date: Tue, 10 Sep 2019 19:56:38 +0300 Subject: [PATCH] fix: fix typo in filename (#52) 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. --- packages/material-bottom-tabs/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/material-bottom-tabs/package.json b/packages/material-bottom-tabs/package.json index 4be90395..331ee723 100644 --- a/packages/material-bottom-tabs/package.json +++ b/packages/material-bottom-tabs/package.json @@ -4,7 +4,7 @@ "description": "Material Bottom Tab Navigation component for React Navigation", "main": "lib/commonjs/index.js", "module": "lib/module/index.js", - "react-native": "src/index.js", + "react-native": "src/index.tsx", "files": [ "src", "lib"