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

[Bug] Cannot run clean project due to @unimodules/react-native-adapter errors #5

Open
mlfowler-cbg opened this issue Dec 17, 2021 · 0 comments

Comments

@mlfowler-cbg
Copy link

Version

1.4.0

Reproduction link

https://jsfiddle.net/pfq9za34/

Operating System

macOS Big Sur 11.6

Device

Samsung Galaxy S20+

Browser & Version

Microsoft Edge Version 95.0.1020.53 (Official build) (arm64)

Steps to reproduce

To reproduce:

  • Download now-ui-pro-react-native-v1.4.0.zip and extract to now-ui-pro-react-native folder

  • Change directory to newly extracted now-ui-pro-react-native folder

  • Run npm install

  • Once npm completes installation, then run expo start

  • Browser opens as expected with no errors

  • Opening app on Android device through Expo Go or on ios simulator yields the same error:

    Android Bundling failed 20668ms
    Unable to resolve module @unimodules/react-native-adapter from /Users/mlfowler/Documents/workspaces/now-ui-pro-react-native/node_modules/@unimodules/core/build/AdapterProxy.js: @unimodules/react-native-adapter could not be found within the project.

    If you are sure the module exists, try these steps:

    1. Clear watchman watches: watchman watch-del-all
    2. Delete node_modules and run yarn install
    3. Reset Metro's cache: yarn start --reset-cache
    4. Remove the cache: rm -rf /tmp/metro-*

    1 | export * from '@unimodules/react-native-adapter';

What is expected?

Expectation is that mobile app will run and display properly once npm install has been run using included package.json file.

Expectation is that clean project should work properly out-of-the-box without having to install any new dependencies.

What is actually happening?

Mobile app is not running properly when viewing on Expo Go or ios simulator. Is erroring out with the following:

Android Bundling failed 20668ms
Unable to resolve module @unimodules/react-native-adapter from /Users/mlfowler/Documents/workspaces/now-ui-pro-react-native/node_modules/@unimodules/core/build/AdapterProxy.js: @unimodules/react-native-adapter could not be found within the project.


Solution

Manually working through all the dependencies the project is missing.

Additional comments

The theme looks great, and I want to use it. I just can't seem to get it to load and run properly due to missing dependencies.

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

1 participant