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
I've followed the installation instructions, and added the recommended expobook script to package.json but I'm seeing an error when I try to run expobook with yarn expobook and npm run expobook. See package.json, app.json, expobook.js and error output below. I'd appreciate any insight. Thanks!
importReactfrom'react';importcreateExpobookfrom'expobook';importTabBarIconfrom'./components/TabBarIcon';constexpobook=createExpobook();expobook.add('Tab Bar Icon',()=><TabBarIconname="Test"focused="true"/>);exportdefaultexpobook.build();
error output
yarn expobook
yarn run v1.12.3
$ ./node_modules/.bin/expobook
09:34:07 [exp] There is a new version of exp available (57.2.1).
You are currently using exp 51.4.0
Run `npm install -g exp` to get the latest version
09:34:08 [exp] Using project at <path/to/project>/app
09:34:14 [exp] Starting React Native packager...
09:34:15 [exp] <path/to/project>/app/node_modules/babel-plugin-module-resolver/lib/index.js:88
09:34:15 [exp] })[1];
09:34:15 [exp] ^
09:34:15 [exp]
09:34:15 [exp] TypeError: Cannot read property '1' of undefined
09:34:15 [exp] at Plugin.manipulateOptions (<path/to/project>/app/node_modules/babel-plugin-module-resolver/lib/index.js:88:9)
09:34:15 [exp] at normalizeOptions (<path/to/project>/app/node_modules/@babel/core/lib/transformation/normalize-opts.js:59:16)
09:34:15 [exp] at runSync (<path/to/project>/app/node_modules/@babel/core/lib/transformation/index.js:44:86)
09:34:15 [exp] at transformSync (<path/to/project>/app/node_modules/@babel/core/lib/transform.js:43:38)
09:34:15 [exp] at Object.transform (<path/to/project>/app/node_modules/@babel/core/lib/transform.js:22:38)
09:34:15 [exp] at compile (<path/to/project>/app/node_modules/@babel/register/lib/node.js:73:20)
09:34:15 [exp] at compileHook (<path/to/project>/app/node_modules/@babel/register/lib/node.js:102:12)
09:34:15 [exp] at Module._compile (<path/to/project>/app/node_modules/pirates/lib/index.js:77:29)
09:34:15 [exp] at Module._extensions..js (module.js:671:10)
09:34:15 [exp] at Object.newLoader [as .js] (<path/to/project>/app/node_modules/pirates/lib/index.js:88:7)
yarn why babel-plugin-module-resolver
yarn why v1.12.3
[1/4] 🤔 Why do we have the module "babel-plugin-module-resolver"...?
[2/4] 🚚 Initialising dependency graph...
[3/4] 🔍 Finding dependency...
[4/4] 🚡 Calculating file sizes...
=> Found "[email protected]"
info Has been hoisted to "babel-plugin-module-resolver"
info Reasons this module exists
- Hoisted from "expobook#exponent#babel-preset-exponent#babel-plugin-module-resolver"
- Hoisted from "expobook#expo#react-native-maps#babel-plugin-module-resolver"
- Hoisted from "expobook#expo#babel-preset-expo#babel-plugin-module-resolver"
info Disk size without dependencies: "76KB"
info Disk size with unique dependencies: "732KB"
info Disk size with transitive dependencies: "1.05MB"
info Number of shared dependencies: 12
=> Found "babel-preset-expo#[email protected]"
info This module exists because "babel-preset-expo" depends on it.
info Disk size without dependencies: "76KB"
info Disk size with unique dependencies: "916KB"
info Disk size with transitive dependencies: "1.3MB"
info Number of shared dependencies: 15
The text was updated successfully, but these errors were encountered:
I've followed the installation instructions, and added the recommended expobook script to
package.json
but I'm seeing an error when I try to run expobook withyarn expobook
andnpm run expobook
. Seepackage.json
,app.json
,expobook.js
and error output below. I'd appreciate any insight. Thanks!package.json
app.json
expobook.js
error output
The text was updated successfully, but these errors were encountered: