آموزش جاوااسکریپت انجمن ها react native خطا در زمان کار با matrial-ui

  • این موضوع 1 پاسخ، 2 کاربر را دارد و آخرین بار در 4 سال، 7 ماه پیش بدست مهدی به‌روزرسانی شده است.
در حال نمایش 2 نوشته (از کل 2)
  • نویسنده
    نوشته‌ها
  • #30113 پاسخ
    s.porya
    مشارکت کننده

    با سلام و خسته نباشید
    من react native نسخه 0.55.4 رو نصب کردم و همه چی اکی هست تا زمانی که کتابخانه matrial-ui رو نصب میکنم و میخام استفاده کنم خطای زیر نمایش داده میشود و نه تنها اون هر چیزی که نصب میکنم خطا میدهد
    The development server returned response error code: 500

    URL: http://10.0.3.2:8081/index.delta?platform=android&dev=true&minify=false&deltaBundleId=4e26bc0ff7a7bf43

    Body:
    {“originModulePath”:”D:\\bashgah-moshtarian-android\\bashgah\\Component\\app-bar.js”,”targetModuleName”:”@material-ui/core”,”message”:”Unable to resolve module @material-ui/core from D:\\bashgah-moshtarian-android\\bashgah\\Component\\app-bar.js: Module @material-ui/core does not exist in the Haste module map\n\nThis might be related to https://github.com/facebook/react-native/issues/4968\nTo resolve try the following:\n 1. Clear watchman watches: watchman watch-del-all.\n 2. Delete the node_modules folder: rm -rf node_modules && npm install.\n 3. Reset Metro Bundler cache: rm -rf /tmp/metro-bundler-cache-* or npm start -- --reset-cache. 4. Remove haste cache: rm -rf /tmp/haste-map-react-native-packager-*.”,”errors”:[{“description”:”Unable to resolve module @material-ui/core from D:\\bashgah-moshtarian-android\\bashgah\\Component\\app-bar.js: Module @material-ui/core does not exist in the Haste module map\n\nThis might be related to https://github.com/facebook/react-native/issues/4968\nTo resolve try the following:\n 1. Clear watchman watches: watchman watch-del-all.\n 2. Delete the node_modules folder: rm -rf node_modules && npm install.\n 3. Reset Metro Bundler cache: rm -rf /tmp/metro-bundler-cache-* or npm start -- --reset-cache. 4. Remove haste cache: rm -rf /tmp/haste-map-react-native-packager-*.”}],”name”:”Error”,”stack”:”Error: Unable to resolve module @material-ui/core from D:\\bashgah-moshtarian-android\\bashgah\\Component\\app-bar.js: Module @material-ui/core does not exist in the Haste module map\n\nThis might be related to https://github.com/facebook/react-native/issues/4968\nTo resolve try the following:\n 1. Clear watchman watches: watchman watch-del-all.\n 2. Delete the node_modules folder: rm -rf node_modules && npm install.\n 3. Reset Metro Bundler cache: rm -rf /tmp/metro-bundler-cache-* or npm start -- --reset-cache. 4. Remove haste cache: rm -rf /tmp/haste-map-react-native-packager-*.\n at ModuleResolver.resolveDependency (D:\\bashgah-moshtarian-android\\bashgah\\node_modules\\metro\\src\\node-haste\\DependencyGraph\\ModuleResolution.js:161:1460)\n at ResolutionRequest.resolveDependency (D:\\bashgah-moshtarian-android\\bashgah\\node_modules\\metro\\src\\node-haste\\DependencyGraph\\ResolutionRequest.js:91:16)\n at DependencyGraph.resolveDependency (D:\\bashgah-moshtarian-android\\bashgah\\node_modules\\metro\\src\\node-haste\\DependencyGraph.js:272:4579)\n at dependencies.map.relativePath (D:\\bashgah-moshtarian-android\\bashgah\\node_modules\\metro\\src\\DeltaBundler\\traverseDependencies.js:376:19)\n at Array.map (<anonymous>)\n at resolveDependencies (D:\\bashgah-moshtarian-android\\bashgah\\node_modules\\metro\\src\\DeltaBundler\\traverseDependencies.js:374:16)\n at D:\\bashgah-moshtarian-android\\bashgah\\node_modules\\metro\\src\\DeltaBundler\\traverseDependencies.js:212:33\n at Generator.next (<anonymous>)\n at step (D:\\bashgah-moshtarian-android\\bashgah\\node_modules\\metro\\src\\DeltaBundler\\traverseDependencies.js:297:313)\n at D:\\bashgah-moshtarian-android\\bashgah\\node_modules\\metro\\src\\DeltaBundler\\traverseDependencies.js:297:473″}
    processBundleResult
    BundleDownloader.java:266
    access$200
    BundleDownloader.java:35
    onResponse
    BundleDownloader.java:153
    execute
    RealCall.java:135
    run
    NamedRunnable.java:32
    runWorker
    ThreadPoolExecutor.java:1113
    run
    ThreadPoolExecutor.java:588
    run
    Thread.java:818

    #30124 پاسخ
    مهدی
    میهمان

    از چه نسخه ای از React native استفاده می کنید؟؟
    توجه داشته باشید که باید react-native-vector-icons رو هم لینک کنید

در حال نمایش 2 نوشته (از کل 2)
پاسخ به: خطا در زمان کار با matrial-ui
اطلاعات شما: