The development server returned response error code: 500



  • URL: http://10.0.2.2:8081/index.android.delta?platform=android&dev=true&minify=false

    Body:
    {"type":"TransformError","lineNumber":0,"errors":[{"description":"/Users/ZY/Documents/project/nicaiapp/index.android.js: ENOENT: no such file or directory, uv_cwd","lineNumber":0}],"name":"SyntaxError","message":"/Users/ZY/Documents/project/nicaiapp/index.android.js: ENOENT: no such file or directory, uv_cwd","stack":"Error: ENOENT: no such file or directory, uv_cwd\n at Object.resolve (path.js:1086:25)\n at loadPrivatePartialConfig (/Users/ZY/Documents/project/nicaiapp/node_modules/@babel/core/lib/config/partial.js:44:39)\n at loadFullConfig (/Users/ZY/Documents/project/nicaiapp/node_modules/@babel/core/lib/config/full.js:43:39)\n at transformSync (/Users/ZY/Documents/project/nicaiapp/node_modules/@babel/core/lib/transform-sync.js:15:38)\n at Object.transform (/Users/ZY/Documents/project/nicaiapp/node_modules/metro/src/reactNativeTransformer.js:163:5)\n at Object.<anonymous> (/Users/ZY/Documents/project/nicaiapp/node_modules/metro/src/JSTransformer/worker.js:204:23)\n at Generator.next (<anonymous>)\n at step (/Users/ZY/Documents/project/nicaiapp/node_modules/metro/src/JSTransformer/worker.js:328:291)\n at /Users/ZY/Documents/project/nicaiapp/node_modules/metro/src/JSTransformer/worker.js:328:521"}
    processBundleResult
    BundleDownloader.java:285
    access$200
    BundleDownloader.java:37
    onResponse
    BundleDownloader.java:163
    execute
    RealCall.java:153
    run
    NamedRunnable.java:32
    runWorker
    ThreadPoolExecutor.java:1162
    run
    ThreadPoolExecutor.java:636
    run
    Thread.java:764



  • 这个错误是什么原因啊,搞一天了



  • 哎,这破框架问题多得狠感觉......各种问题。



  • 不要看些过期的文章跑来问为什么
    现在没有index.android|ios.js , 早就合并成了index.js
    你碰到这个错误只有一个可能,就是你不会看(正确版本的)文档