Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module './env' in ios. #307

Open
Rahul1d opened this issue Oct 4, 2020 · 3 comments
Open

Cannot find module './env' in ios. #307

Rahul1d opened this issue Oct 4, 2020 · 3 comments

Comments

@Rahul1d
Copy link

Rahul1d commented Oct 4, 2020

🐛 Bug Report

Getting error cannot find module '/env' in ios.

Find stack trace:
error Cannot find module './env'
Require stack:

  • /Users/user181944/kitten-ui/kittenTricks/metro.config.js
  • /Users/user181944/kitten-ui/kittenTricks/node_modules/import-fresh/index.js
  • /Users/user181944/kitten-ui/kittenTricks/node_modules/cosmiconfig/dist/loaders.js
  • /Users/user181944/kitten-ui/kittenTricks/node_modules/cosmiconfig/dist/createExplorer.js
  • /Users/user181944/kitten-ui/kittenTricks/node_modules/cosmiconfig/dist/index.js
  • /Users/user181944/kitten-ui/kittenTricks/node_modules/react-native/node_modules/@react-native-community/cli/build/tools/config/readConfigFromDisk.js
  • /Users/user181944/kitten-ui/kittenTricks/node_modules/react-native/node_modules/@react-native-community/cli/build/tools/config/index.js
  • /Users/user181944/kitten-ui/kittenTricks/node_modules/react-native/node_modules/@react-native-community/cli/build/commands/install/install.js
  • /Users/user181944/kitten-ui/kittenTricks/node_modules/react-native/node_modules/@react-native-community/cli/build/commands/index.js
  • /Users/user181944/kitten-ui/kittenTricks/node_modules/react-native/node_modules/@react-native-community/cli/build/index.js
  • /Users/user181944/kitten-ui/kittenTricks/node_modules/react-native/cli.js.

To Reproduce

Steps to reproduce the behavior:

Expected behavior

Link to runnable example or repository (highly encouraged)

UI Kitten and Eva version

Package Version
@eva-design/eva
@ui-kitten/components

Environment information

IOS

System:
OS: macOS 10.15.6
CPU: (8) x64 Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz
Binaries:
Node: 12.13.1 - /usr/local/bin/node
npm: 6.13.4 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 14.0, DriverKit 19.0, macOS 10.15, tvOS 14.0, watchOS 7.0
IDEs:
Android Studio: 4.0 AI-193.6911.18.40.6514223
Xcode: 12.0/12A7209 - /usr/bin/xcodebuild
npmPackages:
react: ~16.9.0 => 16.9.0
react-native: ~0.61.5 => 0.61.5
npmGlobalPackages:
react-native-cli: 2.0.1

@pmtu95
Copy link

pmtu95 commented Nov 22, 2020

I have the same issue, I think we miss index.js file in the env folder
Please update!

@valinagacevschi
Copy link

index.js

const path = require('path');
const env = require('./env.prod');

module.exports = {
  ENV: env.ENV,
  UI_KITTEN_PACKAGES_PATH: path.resolve(__dirname, env.UI_KITTEN_PACKAGES_PATH),
  EVA_PACKAGES_PATH: path.resolve(__dirname, env.EVA_PACKAGES_PATH),
};

@datai999
Copy link

I have the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants