After roadhog is upgraded to 2.0, an error is reported in the online production environment.

The

project uses an older 0.3.1 version of ant design pro, and roadhog is 1.3.1. The
project wants to use align and production environment sourcemap, so it upgrades roadhog to 2.0 according to the official upgrade tutorial.
there is no problem running locally, and there is no problem with index.html under the dist folder generated after running npm run build .

report LocaleProvider is not defined

all the time after the result reaches the online production environment.

ps: We publish npm install and npm run build again in docker, instead of putting the files in dist on the server directly.

Jun.08,2021

solved. Upgrading babel-plugin-import to 1.6.7 or above will ok

.
Menu