Giter Site home page Giter Site logo

Comments (5)

Neustrashimy avatar Neustrashimy commented on June 28, 2024 1

わたしの環境依存の問題だったようです。
仮想マシンのメモリを0.75GB→1.75GBに増やしたところ、yarn run build:js が正常終了しました。

$ yarn run build:js
yarn run v0.24.5
$ webpack 
================================
[5/18/2017, 12:35:36 PM] Start compile
(node:1222) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
Hash: e3c4881fecd3a3b6b1a5
Version: webpack 2.4.1
Time: 47057ms
             Asset     Size  Chunks                    Chunk Names
    main.bundle.js  3.59 MB       0  [emitted]  [big]  main
main.bundle.js.map  4.14 MB       0  [emitted]         main
   [0] ./~/moment/moment.js 129 kB {0} [built]
   [7] ./~/react/react.js 56 bytes {0} [built]
  [90] ./~/react-dom/index.js 59 bytes {0} [built]
 [112] ./~/openpgp/dist/openpgp.js 778 kB {0} [built]
 [120] ./~/almin-logger/lib/AlminLogger.js 4.65 kB {0} [built]
 [381] ./src/js/main.es6 3.17 kB {0} [built]
 [382] ./~/babel-polyfill/lib/index.js 833 bytes {0} [built]
 [392] ./src/js/Application.es6 2.33 kB {0} [built]
 [407] ./src/js/pages/Dashboard.es6 10.3 kB {0} [built]
 [429] ./src/js/store/AppStore.es6 1.85 kB {0} [built]
 [456] ./~/core-js/fn/regexp/escape.js 107 bytes {0} [built]
 [636] ./~/core-js/shim.js 7.38 kB {0} [built]
 [675] ./~/raven-js/src/singleton.js 878 bytes {0} [built]
 [763] ./~/regenerator-runtime/runtime.js 23.8 kB {0} [built]
 [778] multi babel-polyfill ./src/js/main.es6 40 bytes {0} [built]
    + 764 hidden modules
[5/18/2017, 12:36:23 PM] Finish compile
================================
Done in 74.28s.

$ ll static/
total 7680
drwxrwxr-x. 2 naumanni naumanni     109 May 18 11:55 font
drwxrwxr-x. 2 naumanni naumanni      85 May 18 11:55 images
-rw-rw-r--. 1 naumanni naumanni 3623576 May 18 12:36 main.bundle.js
-rw-rw-r--. 1 naumanni naumanni 4179558 May 18 12:36 main.bundle.js.map
-rw-rw-r--. 1 naumanni naumanni   54073 May 18 12:21 main.css

from naumanni.

shnjp avatar shnjp commented on June 28, 2024 1

手元のMacOSでgtime -f '%M' yarn run build:jsしてみたところ、1948958720とでてきたので、約1.8GB使っているようです。凄い

[email protected]さんが書かれているように、スワップ領域増やしてみるのも良いかもしれません。

from naumanni.

shnjp avatar shnjp commented on June 28, 2024

報告ありがとうございます。
幾つか、教えてください

  • nodeのバージョンを教えてください
  • yarn run build だけ行うと、static/以下にmain.bundle.js等ができているはずなのですが、それはどうなっていますでしょうか?

from naumanni.

Neustrashimy avatar Neustrashimy commented on June 28, 2024
$ node -v
v6.10.3

yarn run build だけを行った後の staticディレクトリの中身

$ ls -l static/
total 56
drwxrwxr-x 2 naumanni naumanni   109 May 18 00:08 font
drwxrwxr-x 2 naumanni naumanni    85 May 18 00:08 images
-rw-rw-r-- 1 naumanni naumanni 53689 May 18 19:15 main.css

どうもこの段階で生成されていないようです。。。

from naumanni.

Neustrashimy avatar Neustrashimy commented on June 28, 2024

検証ありがとうございます。
動作(ビルド)環境として、メモリ2GBは必須のようですね。。。

from naumanni.

Related Issues (20)

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.