Skip to content
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

@babel/polyfill is deprecated. Please, use required parts of core-js and regenerator-runtime/runtime separately #531

Open
sampathkumar7 opened this issue Feb 7, 2021 · 10 comments

Comments

@sampathkumar7
Copy link

While running hollaex web --setup getting error

@babel/polyfill is deprecated. Please, use required parts of core-js and regenerator-runtime/runtime separately

@abeikverdi
Copy link
Collaborator

the build crashes afterwards?

@umclouds
Copy link

Hello @abeikverdi i got same error
crashes afterwards, how fix it?

@geodex
Copy link

geodex commented Feb 22, 2021

Hi, I received the same error on a new install, clean server. Mine completed, but after the install, when testing the /v2/health link, or trying to access the page, the page shows that it is loading, but comes up blank.

@geodex
Copy link

geodex commented Feb 22, 2021

Hi, I received the same error on a new install, clean server. Mine completed, but after the install, when testing the /v2/health link, or trying to access the page, the page shows that it is loading, but comes up blank.

error after install

@abeikverdi
Copy link
Collaborator

@geodex that is a different issue. Its the server connection with the web. You need to run hollaex prod command to use the domain. You can also build the web manually with your server ip address: https://forum.hollaex.com/t/manual-web-deployment/127/2

@geodex
Copy link

geodex commented Feb 23, 2021 via email

@schulzf
Copy link

schulzf commented Mar 21, 2021

I'm having the same issue here, fresh install.
Is there a way to replace polyfill for core-js without ejecting CRA?

@turon
Copy link

turon commented Mar 28, 2021

Also see this issue with a fresh install:

bash ./install.sh
hollaex init --name MyExchange
hollaex server --start
hollaex web --setup
# Issue below before can proceed to --start
# hollaex web --start
% hollaex web --setup                                     
Building the user HollaEx Web image.
Generating .env for Web Client
[+] Building 6.7s (12/17)                                                                                               [+] Building 258.7s (12/17)                                                                                             
[+] Building 285.8s (13/17)                                                                                             
 => [internal] load build definition from Dockerfile                                                               0.0ss
 => => transferring dockerfile: 37B                                                                                0.0ss
 => [internal] load .dockerignore                                                                                  0.0ss
 => => transferring context: 2B                                                                                    0.0ss
 => [internal] load metadata for docker.io/library/nginx:1.16.0-alpine                                             1.7ss
 => [internal] load metadata for docker.io/library/node:12.18.3-alpine                                             1.7ss
 => [build 1/6] FROM docker.io/library/node:12.18.3-alpine@sha256
 => [internal] load build context                                                                                  0.2ss
 => => transferring context: 89.31kB                                                                               0.2ss
 => [stage-1 1/6] FROM docker.io/library/nginx:1.16.0-alpine@sha256
 => CACHED [stage-1 2/6] RUN apk add --update     curl     && rm -rf /var/cache/apk/*                              0.0ss
 => CACHED [build 2/6] WORKDIR /app                                                                                0.0ss
 => CACHED [build 3/6] COPY package.json /app/package.json                                                         0.0ss
 => CACHED [build 4/6] RUN npm install --loglevel=error                                                            0.0ss
 => CACHED [build 5/6] COPY . /app                                                                                 0.0ss
 => ERROR [build 6/6] RUN npm run build                                                                          283.6s 
------                                                                                                                  
 > [build 6/6] RUN npm run build:                                                                                       
#12 0.793                                                                                                               
#12 0.793 > hollaex-kit@2.0.13 build /app                                                                               
#12 0.793 > npm run build-css && react-scripts --max_old_space_size=3072 build                                          
#12 0.793                                                                                                               
#12 1.067 
#12 1.067 > hollaex-kit@2.0.13 build-css /app
#12 1.067 > node-sass-chokidar src/ -o src/
#12 1.067 
#12 1.998 Rendering Complete, saving .css file...
#12 2.008 Wrote CSS to /app/src/index.css
#12 2.009 Wrote 1 CSS files to /app/src/
#12 4.566 Creating an optimized production build...
#12 7.116 
#12 7.116   `@babel/polyfill` is deprecated. Please, use required parts of `core-js`
#12 7.116   and `regenerator-runtime/runtime` separately
#12 282.8 The build failed because the process exited too early. This probably means the system ran out of memory or someone called `kill -9` on the process.
#12 282.9 npm ERR! code ELIFECYCLE
#12 282.9 npm ERR! errno 1
#12 282.9 npm ERR! hollaex-kit@2.0.13 build: `npm run build-css && react-scripts --max_old_space_size=3072 build`
#12 282.9 npm ERR! Exit status 1
#12 282.9 npm ERR! 
#12 282.9 npm ERR! Failed at the hollaex-kit@2.0.13 build script.
#12 282.9 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
#12 283.5 
#12 283.5 npm ERR! A complete log of this run can be found in:
#12 283.5 npm ERR!     /root/.npm/_logs/2021-03-27T00_21_09_320Z-debug.log
------
executor failed running [/bin/sh -c npm run build]: exit code: 1
Failed to build the image.
Please confirm your configurations and try again.
If you are not on a latest HollaEx Kit, Please update it first to latest.

@Marian0
Copy link

Marian0 commented Apr 5, 2021

Same issue here .

Rendering Complete, saving .css file...
Wrote CSS to /app/src/index.css
Wrote 1 CSS files to /app/src/
Creating an optimized production build...

  `@babel/polyfill` is deprecated. Please, use required parts of `core-js`
  and `regenerator-runtime/runtime` separately`

@abeikverdi
Copy link
Collaborator

This is most likely due to the lack of enough memory on your machine. Make sure you have 8gb available before running the web build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants