akveo / kittenTricks

React Native starter kit with over 40 screens and modern Light and Dark theme for creating stunning cross-platform mobile applications.
https://akveo.github.io/react-native-ui-kitten/
MIT License
7.15k stars 988 forks source link

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

Open Rahul1d opened 3 years ago

Rahul1d commented 3 years ago

šŸ› Bug Report

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

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

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 commented 3 years ago

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

valinagacevschi commented 3 years ago

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 commented 3 years ago

I have the same issue