-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react-intl-universal build failed with create-react-app #16
Comments
could you show more detail about your build config? |
@cwtuan 你好,我用的是create-react-app生成的项目,然后按照例子配置的,没有什么build config。你能说的详细点吗,或者是我哪里理解错了 |
what's your node version and create-react-app version? |
version:node -v:v7.10.0 create-react-app --version :1.3.3 thank you |
@lany9527 Currently, could you please use There are lots of react+webpack generators on the web, you can try generator-react-webpack to generate a new project quickly. |
@cwtuan 谢谢你的耐心解答,我用create-react-app的时候eject了,然后在config的webpack部分里面配置了多入口 |
我这边的项目也是 用 create-reat-app做的, 同样是build的时候先卡住,之后报了一样的错误提示 |
我按照例子配置了我的项目,发现build很久,大概5min以上,到最后失败了:报错如下:
`
yarn build
yarn build v0.27.5
$ node scripts/build.js
Creating an optimized production build...
<--- Last few GCs --->
[15101:0x2ae6680] 333362 ms: Mark-sweep 1401.1 (1522.6) -> 1401.1 (1521.6) MB, 884.7 / 0.0 ms (+ 0.0 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 885 ms) last resort
[15101:0x2ae6680] 334267 ms: Mark-sweep 1401.1 (1521.6) -> 1401.1 (1521.6) MB, 904.4 / 0.0 ms last resort
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x175f3e2266a1
2: _serializeMappings(aka SourceMapGenerator_serializeMappings) [/home/littlestone/Documents/work/duomi-cp/node_modules/source-map/lib/source-map-generator.js:~291] [pc=0x2db6aa584db4](this=0x1fa145e2b651 <a SourceMapGenerator with map 0x28d6ae1d0491>)
3: toJSON(aka SourceMapGenerator_toJSON) [/home/littlestone/Documents/work/duomi-cp/node_modules/source-map/lib/source-map-generator.js:...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node::Abort() [node]
2: 0x12b82ac [node]
3: v8::Utils::ReportOOMFailure(char const*, bool) [node]
4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [node]
5: v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [node]
6: v8::internal::Runtime_AllocateInTargetSpace(int, v8::internal::Object**, v8::internal::Isolate*) [node]
7: 0x2db6a748ed46
Aborted
error Command failed with exit code 134.
`
我降了版本还是无法解决问题。请问有没有人能解决这个问题?
The text was updated successfully, but these errors were encountered: