Project

General

Profile

Actions

Defect #2158

closed

IdmTool - frontend build failed on heap limit (update node 12.x version)

Added by Radek Tomiška about 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Radek Tomiška
Category:
Continuous development
Target version:
Start date:
03/27/2020
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

Description

Frontend build fails on some environment, info same as here https://wiki.czechidm.com/tutorial/dev/creating_a_development_environment#frontend_build_fails

Add parameter to gulp build task to increase memory for frontend build.

Increase memory by parameter (--max-old-space-size / --max_old_space_size ...) or use newer node version 12.x

Actions #1

Updated by Radek Tomiška about 4 years ago

  • Description updated (diff)
Actions #2

Updated by Radek Tomiška about 4 years ago

  • Description updated (diff)
Actions #3

Updated by Radek Tomiška almost 4 years ago

  • Status changed from New to Needs feedback
  • Assignee changed from Radek Tomiška to Vít Švanda
  • Target version set to 10.4.0
  • % Done changed from 0 to 90

Node 12.x is not supported with Gulp 3.9.x. So I had to use workaround to make it posible by this doc:
https://stackoverflow.com/questions/55921442/how-to-fix-referenceerror-primordials-is-not-defined-in-node

But we can use the latest Node LTS version 12.16.3, Npm and Npx 6.14.4 now. The system solution is update project to use Gulp 4 (longer run).

Commit:
https://github.com/bcvsolutions/CzechIdMng/commit/1de8403b1609fe70a4f0e3d34e8170fcd6c6bcc1

Could you provide me a feedback, please?

Note: Node version 12 will be used for build project with CzechIdM >= 10.4. All previous versions (9.7.x, < 10.4) will be build by Node 10.

Actions #4

Updated by Radek Tomiška almost 4 years ago

  • Subject changed from IdmTool - frontend build failed on heap limit to IdmTool - frontend build failed on heap limit (update node 12.x version)
Actions #5

Updated by Vít Švanda almost 4 years ago

  • Status changed from Needs feedback to Resolved
  • Assignee changed from Vít Švanda to Radek Tomiška
  • % Done changed from 90 to 100

I did reivew. I tested it on NPM version 10.15.3 and 12.18.1. Project was build successfully.

Actions #6

Updated by Radek Tomiška almost 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF