GithubHelp home page GithubHelp logo

Comments (6)

litt1e-p avatar litt1e-p commented on July 17, 2024 1

thanks for your answer, now the app could run successfully on my iPhone with react-native start -- --reset-cache & cmd+r in Xcode, but it still could not run in simulator with yarn run ios, the babel-plugin-module-resolver maybe exists some bug there. I do not know why

from jjjkkk.

trazyn avatar trazyn commented on July 17, 2024

Sorry it's react-native link, already update README

from jjjkkk.

litt1e-p avatar litt1e-p commented on July 17, 2024

there are some errors raised as below:

error: bundling failed: Error: Unable to resolve module `../node_modules/react-native/src/utils/MobxProvider` from `/Users/mac/Desktop/JJJkkk/src/index.js`: The module `../node_modules/react-native/src/utils/MobxProvider` could not be found from `/Users/mac/Desktop/JJJkkk/src/index.js`. Indeed, none of these files exist:
* `/Users/mac/Desktop/JJJkkk/node_modules/react-native/src/utils/MobxProvider(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json)`
  * `/Users/mac/Desktop/JJJkkk/node_modules/react-native/src/utils/MobxProvider/index(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json)`
    at ModuleResolver.resolveDependency (/Users/mac/Desktop/JJJkkk/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:311:1122)
    at ResolutionRequest.resolveDependency (/Users/mac/Desktop/JJJkkk/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:96:16)
    at DependencyGraph.resolveDependency (/Users/mac/Desktop/JJJkkk/node_modules/metro/src/node-haste/DependencyGraph.js:269:4352)
    at /Users/mac/Desktop/JJJkkk/node_modules/metro/src/DeltaBundler/traverseDependencies.js:201:36
    at Generator.next (<anonymous>)
    at step (/Users/mac/Desktop/JJJkkk/node_modules/metro/src/DeltaBundler/traverseDependencies.js:256:306)
    at /Users/mac/Desktop/JJJkkk/node_modules/metro/src/DeltaBundler/traverseDependencies.js:256:536
    at new Promise (<anonymous>)
    at /Users/mac/Desktop/JJJkkk/node_modules/metro/src/DeltaBundler/traverseDependencies.js:256:217
    at addDependency (/Users/mac/Desktop/JJJkkk/node_modules/metro/src/DeltaBundler/traverseDependencies.js:256:92)
 BUNDLE  [ios, dev] ./index.js ▓░░░░░░░░░░░░░░░ 6.4% (103/407), failed.

did I miss some steps to build it correctly?

from jjjkkk.

trazyn avatar trazyn commented on July 17, 2024

You need to reset npm cache or reinstall modules(rm -rf node_modules/ && npm i)

from jjjkkk.

litt1e-p avatar litt1e-p commented on July 17, 2024

same error were still raised.

from jjjkkk.

trazyn avatar trazyn commented on July 17, 2024

The problem caused by babel-plugin-module-resolver, maybe can help for u Support for React Native

from jjjkkk.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.