full-stack-fastapi-template
full-stack-fastapi-template copied to clipboard
@babel/polyfill is deprecated.
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
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 ofcore-js
#0 3.081 andregenerator-runtime/runtime
separately #0 15.99 ERROR Failed to compile with 2 errors1:10:07 PM #0 15.99 #0 15.99 error
`
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 ofcore-js
#0 3.081 andregenerator-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";