full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

@babel/polyfill is deprecated.

Open semernyakov opened this issue 4 years ago • 2 comments

Help solve the problem. I am developing a project on a prod server.

Deploy in a Docker Swarm cluster.

Here are the steps in detail:

Create images of your application Set these environment variables right before the following command: TAG = prod FRONTEND_ENV = production

Use the provided scripts / build.sh file with these environment variables: TAG = prod FRONTEND_ENV = production bash ./scripts/build.sh

error return:

@ babel / polyfill is deprecated. Please use the necessary parts of core-js and regenerator-runtime / runtime separately killed

plese fix it in you code

semernyakov avatar May 18 '20 17:05 semernyakov

I have the same issue when using 'docker compose up -d'. Any update? Thanks you.

`

[build-stage 7/7] RUN npm run build:
#0 0.552
#0 0.552 > [email protected] build
#0 0.552 > vue-cli-service build
#0 0.552 #0 1.074 #0 1.074 - Building for production... #0 3.081 #0 3.081 @babel/polyfill is deprecated. Please, use required parts of core-js #0 3.081 and regenerator-runtime/runtime separately #0 15.99 ERROR Failed to compile with 2 errors1:10:07 PM #0 15.99 #0 15.99 error
`

AlanMars avatar Apr 12 '23 13:04 AlanMars

I have the same issue when using 'docker compose up -d'. Any update? Thanks you.

`

[build-stage 7/7] RUN npm run build: #0 0.552 #0 0.552 > [email protected] build #0 0.552 > vue-cli-service build #0 0.552 #0 1.074 #0 1.074 - Building for production... #0 3.081 #0 3.081 @babel/polyfill is deprecated. Please, use required parts of core-js #0 3.081 and regenerator-runtime/runtime separately #0 15.99 ERROR Failed to compile with 2 errors1:10:07 PM #0 15.99 #0 15.99 error `

@babel/polyfill has been deprecated since babel version of 7.4.0. @babel/polyfill is combination of core-js and regenerator-runtime but it tingly coupled to core-js@2 and cannot provide smooth migration to core-js@3 Official @babel/polyfill documentation

Solution:

import "@babel/polyfill"; => import "core-js/stable"; import "regenerator-runtime/runtime";

AlanMars avatar Apr 12 '23 13:04 AlanMars