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

Unable to resolve module @eva-design/processor #757

Closed
PasinduDineth opened this issue Dec 4, 2019 · 5 comments · Fixed by #758
Closed

Unable to resolve module @eva-design/processor #757

PasinduDineth opened this issue Dec 4, 2019 · 5 comments · Fixed by #758
Assignees
Labels
🐛 Bug 📱 Components components module-specific

Comments

@PasinduDineth
Copy link

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?

@artyorsh
Copy link
Collaborator

artyorsh commented Dec 4, 2019

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

@stay2be
Copy link

stay2be commented Dec 4, 2019

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';
...

@artyorsh artyorsh reopened this Dec 4, 2019
@artyorsh artyorsh added 🐛 Bug 📱 Components components module-specific P1: urgent labels Dec 4, 2019
@artyorsh artyorsh self-assigned this Dec 4, 2019
@artyorsh
Copy link
Collaborator

artyorsh commented Dec 4, 2019

@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 👍

@artyorsh artyorsh closed this as completed Dec 4, 2019
@stay2be
Copy link

stay2be commented Dec 4, 2019

Works now. Thanks @artyorsh !

@PasinduDineth
Copy link
Author

Works fine mate. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug 📱 Components components module-specific
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants