React-native-ui-kitten: Unable to resolve module @eva-design/processor

Created on 4 Dec 2019  路  5Comments  路  Source: akveo/react-native-ui-kitten

I have installed libraries using the provided code of the documentation.
npm un -g react-native-cli && npm i -g @react-native-community/cli npx

Then created a new project using the provided code
npx react-native init MyApp --template @ui-kitten/template-js

After that, I used react-native run-android to start the app. Then I got the following issue.
bundling failed: Error: Unable to resolve module../../../../node_modules/@eva-design/processorfromnode_modules/@ui-kitten/components/theme/application/applicationProvider.component.js:

How to fix this?

Bug Components

All 5 comments

Hi! 馃憢 Thanks for reporting
We already working on it, the patch will be available soon

As a workaround, change the following file:
node_modules/@ui-kitten/components/theme/application/applicationProvider.component.js

from

...
import React from 'react';
import merge from 'lodash.merge';
/* THIS LINE => */ import { SchemaProcessor } from '../../../../node_modules/@eva-design/processor';
import { StyleProvider } from '../style/styleProvider.component';
import { ModalPanel } from '../modal/modalPanel.component';
...

to

...
import React from 'react';
import merge from 'lodash.merge';
/* THIS LINE => */ import { SchemaProcessor } from '../../node_modules/@eva-design/processor';
import { StyleProvider } from '../style/styleProvider.component';
import { ModalPanel } from '../modal/modalPanel.component';
...

@PasinduDineth @stay2be
We've just published an update that should generate your project properly. Try reinitializing by following same guide and thanks again for reporting 馃憤

Works now. Thanks @artyorsh !

Works fine mate. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sarmadkung picture sarmadkung  路  3Comments

jeloagnasin picture jeloagnasin  路  3Comments

simonsankar picture simonsankar  路  3Comments

eyalyoli picture eyalyoli  路  3Comments

domsterthebot picture domsterthebot  路  3Comments