React-native-ui-kitten: npm start causes an error

Created on 12 Jun 2019  路  9Comments  路  Source: akveo/react-native-ui-kitten

error Cannot find module './config'. Run CLI with --verbose flag for more details.
Someone can hello my please.
I clone the git kitten after install npm and when try to do expo start:
error Cannot find module './config'. Run CLI with --verbose flag for more details.

Issue type

I'm submitting a ... (check one with "x")

  • [ ] bug report
  • [ ] feature request

Issue description

Current behavior:

Expected behavior:

Steps to reproduce:

Related code:

insert short code snippets here

Other information:

OS, device, package version

insert information here
Help wanted

All 9 comments

Hi @josemob87

You don't need using expo-cli to start an app.
Consider using npm start. This will do the same, but with some configuration magic

Thanks for the report. We'll document the guide to start an app

How can i do a configuration Magic?

You don't need to do this. You should use npm start instead of expo start

I have the same issue when running with npm start as well.

@srivempati can you please provide a detailed log of an error and some information about the device you're trying to run it?

I've just cloned the repo and run it on my mac without any problems

I have just checked out the repo and ran npm install followed by npm start and this is what I see.

`> [email protected] start /Users/svempati/code/cortex-react-native

expo start

Starting project at /Users/svempati/code/cortex-react-native
Expo DevTools is running at http://localhost:19002
Opening DevTools in the browser... (press shift-d to disable)
Warning: This project contains unoptimized assets. Please run expo optimize in your project directory.
error Cannot find module './config'. Run CLI with --verbose flag for more details.

Metro Bundler process exited with code 1
Error: Metro Bundler process exited with code 1
at ChildProcess.packagerProcess.once (/@expo/[email protected]/src/Project.js:1594:16)
at Object.onceWrapper (events.js:285:20)
at ChildProcess.emit (events.js:197:13)
at ChildProcess.EventEmitter.emit (domain.js:481:20)
at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: expo start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/svempati/.npm/_logs/2019-06-12T20_05_08_144Z-debug.log`

You're trying to run Kitten Tricks app.
Please report such issues to the corresponding repo to avoid misunderstanding.

Anyway, I've discovered the root of trouble. You can run it with npm run start:prod. We'll fix this soon. Thanks for the log details!

got it, thansk!

npm run env -- prod && expo start

Was this page helpful?
0 / 5 - 0 ratings

Related issues

evangunawan picture evangunawan  路  3Comments

domsterthebot picture domsterthebot  路  3Comments

chamatt picture chamatt  路  3Comments

betodasilva picture betodasilva  路  3Comments

sobiso picture sobiso  路  3Comments