最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

Heroku的构建失败

IT培训 admin 4浏览 0评论

Heroku的构建失败

我是能够成功地部署我MERN栈的应用程序大约12小时前。从那以后,我还没有做出任何有效的改变和再次的Heroku部署失败,一遍又一遍。只有我的本地主机,应用程序运行完全和以前的成功Heroku的版本是目前生活和功能。但是,我没能推出新的更新到实时应用程序,因为这一点。

建立日志:

Creating an optimized production build...
       Failed to compile.

       Failed to minify the bundle. Error: static/js/main.e01c6616.chunk.js from Terser
       TypeError: Cannot read property 'minify' of undefined
           at compiler.run (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/react-scripts/scripts/build.js:164:23)
           at finalCallback (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/webpack/lib/Compiler.js:210:39)
           at hooks.done.callAsync.err (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/webpack/lib/Compiler.js:226:13)
           at AsyncSeriesHook.eval [as callAsync] (eval at create (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
           at AsyncSeriesHook.lazyCompileHook (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/tapable/lib/Hook.js:154:20)
           at onCompiled (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/webpack/lib/Compiler.js:224:21)
           at hooks.afterCompile.callAsync.err (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/webpack/lib/Compiler.js:553:14)
           at AsyncSeriesHook.eval [as callAsync] (eval at create (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
           at AsyncSeriesHook.lazyCompileHook (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/tapable/lib/Hook.js:154:20)
           at compilation.seal.err (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/webpack/lib/Compiler.js:550:30)
           at AsyncSeriesHook.eval [as callAsync] (eval at create (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
           at AsyncSeriesHook.lazyCompileHook (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/tapable/lib/Hook.js:154:20)
           at hooks.optimizeAssets.callAsync.err (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/webpack/lib/Compilation.js:1295:35)
           at AsyncSeriesHook.eval [as callAsync] (eval at create (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
           at AsyncSeriesHook.lazyCompileHook (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/tapable/lib/Hook.js:154:20)
           at hooks.optimizeChunkAssets.callAsync.err (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/webpack/lib/Compilation.js:1286:32)
       Read more here: http://bit ly CRA-build-minify

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `react-scripts build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/npmcache.PRRnP/_logs/2019-02-03T01_50_06_433Z-debug.log
error Command failed with exit code 1.
       info Visit  for documentation about this command.
-----> Build failed

       We're sorry this build is failing! You can troubleshoot common issues here:
       

       If you're stuck, please submit a ticket so we can help:
       /

       Love,
       Heroku

 !     Push rejected, failed to compile Node.js app.
 !     Push failed

我曾尝试回滚到以前的版本,我仍然得到这个错误。我试图部署一个完全不同的应用程序将其现有的生活Heroku的实例和也失败了。事情发生在过去的12个小时。

我看到这个链接:.0.6。

不知道它是指无法再缩小束。而且我不知道为什么我不能部署完全不同的应用程序。谁能帮我解决这个?

回答如下:

更简洁的原因。尝试updathe,然后再试一次,它应该工作。

npm install [email protected] --save-dev

Heroku的构建失败

我是能够成功地部署我MERN栈的应用程序大约12小时前。从那以后,我还没有做出任何有效的改变和再次的Heroku部署失败,一遍又一遍。只有我的本地主机,应用程序运行完全和以前的成功Heroku的版本是目前生活和功能。但是,我没能推出新的更新到实时应用程序,因为这一点。

建立日志:

Creating an optimized production build...
       Failed to compile.

       Failed to minify the bundle. Error: static/js/main.e01c6616.chunk.js from Terser
       TypeError: Cannot read property 'minify' of undefined
           at compiler.run (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/react-scripts/scripts/build.js:164:23)
           at finalCallback (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/webpack/lib/Compiler.js:210:39)
           at hooks.done.callAsync.err (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/webpack/lib/Compiler.js:226:13)
           at AsyncSeriesHook.eval [as callAsync] (eval at create (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
           at AsyncSeriesHook.lazyCompileHook (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/tapable/lib/Hook.js:154:20)
           at onCompiled (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/webpack/lib/Compiler.js:224:21)
           at hooks.afterCompile.callAsync.err (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/webpack/lib/Compiler.js:553:14)
           at AsyncSeriesHook.eval [as callAsync] (eval at create (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
           at AsyncSeriesHook.lazyCompileHook (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/tapable/lib/Hook.js:154:20)
           at compilation.seal.err (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/webpack/lib/Compiler.js:550:30)
           at AsyncSeriesHook.eval [as callAsync] (eval at create (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
           at AsyncSeriesHook.lazyCompileHook (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/tapable/lib/Hook.js:154:20)
           at hooks.optimizeAssets.callAsync.err (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/webpack/lib/Compilation.js:1295:35)
           at AsyncSeriesHook.eval [as callAsync] (eval at create (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
           at AsyncSeriesHook.lazyCompileHook (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/tapable/lib/Hook.js:154:20)
           at hooks.optimizeChunkAssets.callAsync.err (/tmp/build_0b7573e23cc40b96799733b6dbbf2347/client/node_modules/webpack/lib/Compilation.js:1286:32)
       Read more here: http://bit ly CRA-build-minify

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `react-scripts build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/npmcache.PRRnP/_logs/2019-02-03T01_50_06_433Z-debug.log
error Command failed with exit code 1.
       info Visit  for documentation about this command.
-----> Build failed

       We're sorry this build is failing! You can troubleshoot common issues here:
       

       If you're stuck, please submit a ticket so we can help:
       /

       Love,
       Heroku

 !     Push rejected, failed to compile Node.js app.
 !     Push failed

我曾尝试回滚到以前的版本,我仍然得到这个错误。我试图部署一个完全不同的应用程序将其现有的生活Heroku的实例和也失败了。事情发生在过去的12个小时。

我看到这个链接:.0.6。

不知道它是指无法再缩小束。而且我不知道为什么我不能部署完全不同的应用程序。谁能帮我解决这个?

回答如下:

更简洁的原因。尝试updathe,然后再试一次,它应该工作。

npm install [email protected] --save-dev

与本文相关的文章

发布评论

评论列表 (0)

  1. 暂无评论