You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Administrator@WIN-JTLUFBTGLLJ MINGW64 /e/code/bingbingle-fronted (yqh-feat-build)
$ yarn build
yarn run v1.22.19
$ vue-cli-service build
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
\ Building for production...Failed to load ./.env.example.
E:\code\bingbingle-fronted\node_modules\webpack\lib\DefinePlugin.js:292
compilation.valueCacheVersions.get(VALUE_DEP_MAIN)
^
TypeError: Cannot read properties of undefined (reading 'get')
at E:\code\bingbingle-fronted\node_modules\webpack\lib\DefinePlugin.js:292:38
at SyncHook.eval [as call] (eval at create (E:\code\bingbingle-fronted\node_modules@vue\cli-service\node_modules\tapable\lib\HookCodeFactory.js:19:10), :23:1)
at SyncHook.lazyCompileHook (E:\code\bingbingle-fronted\node_modules@vue\cli-service\node_modules\tapable\lib\Hook.js:154:20)
at Compiler.newCompilation (E:\code\bingbingle-fronted\node_modules@vue\cli-service\node_modules\webpack\lib\Compiler.js:631:26)
at E:\code\bingbingle-fronted\node_modules@vue\cli-service\node_modules\webpack\lib\Compiler.js:667:29
at AsyncSeriesHook.eval [as callAsync] (eval at create (E:\code\bingbingle-fronted\node_modules@vue\cli-service\node_modules\tapable\lib\HookCodeFactory.js:33:10), :6:1)
at AsyncSeriesHook.lazyCompileHook (E:\code\bingbingle-fronted\node_modules@vue\cli-service\node_modules\tapable\lib\Hook.js:154:20)
at Compiler.compile (E:\code\bingbingle-fronted\node_modules@vue\cli-service\node_modules\webpack\lib\Compiler.js:662:28)
at E:\code\bingbingle-fronted\node_modules@vue\cli-service\node_modules\webpack\lib\Compiler.js:321:11
at Compiler.readRecords (E:\code\bingbingle-fronted\node_modules@vue\cli-service\node_modules\webpack\lib\Compiler.js:529:11)
at E:\code\bingbingle-fronted\node_modules@vue\cli-service\node_modules\webpack\lib\Compiler.js:318:10
at eval (eval at create (E:\code\bingbingle-fronted\node_modules@vue\cli-service\node_modules\tapable\lib\HookCodeFactory.js:33:10), :13:1)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The text was updated successfully, but these errors were encountered:
老哥你好,我配置了生产环境,然后执行打包命令的时候为什么还会走.env.example这个呢
Administrator@WIN-JTLUFBTGLLJ MINGW64 /e/code/bingbingle-fronted (yqh-feat-build)
$ yarn build
yarn run v1.22.19
$ vue-cli-service build
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
\ Building for production...Failed to load ./.env.example.
E:\code\bingbingle-fronted\node_modules\webpack\lib\DefinePlugin.js:292
compilation.valueCacheVersions.get(VALUE_DEP_MAIN)
^
TypeError: Cannot read properties of undefined (reading 'get')
at E:\code\bingbingle-fronted\node_modules\webpack\lib\DefinePlugin.js:292:38
at SyncHook.eval [as call] (eval at create (E:\code\bingbingle-fronted\node_modules@vue\cli-service\node_modules\tapable\lib\HookCodeFactory.js:19:10), :23:1)
at SyncHook.lazyCompileHook (E:\code\bingbingle-fronted\node_modules@vue\cli-service\node_modules\tapable\lib\Hook.js:154:20)
at Compiler.newCompilation (E:\code\bingbingle-fronted\node_modules@vue\cli-service\node_modules\webpack\lib\Compiler.js:631:26)
at E:\code\bingbingle-fronted\node_modules@vue\cli-service\node_modules\webpack\lib\Compiler.js:667:29
at AsyncSeriesHook.eval [as callAsync] (eval at create (E:\code\bingbingle-fronted\node_modules@vue\cli-service\node_modules\tapable\lib\HookCodeFactory.js:33:10), :6:1)
at AsyncSeriesHook.lazyCompileHook (E:\code\bingbingle-fronted\node_modules@vue\cli-service\node_modules\tapable\lib\Hook.js:154:20)
at Compiler.compile (E:\code\bingbingle-fronted\node_modules@vue\cli-service\node_modules\webpack\lib\Compiler.js:662:28)
at E:\code\bingbingle-fronted\node_modules@vue\cli-service\node_modules\webpack\lib\Compiler.js:321:11
at Compiler.readRecords (E:\code\bingbingle-fronted\node_modules@vue\cli-service\node_modules\webpack\lib\Compiler.js:529:11)
at E:\code\bingbingle-fronted\node_modules@vue\cli-service\node_modules\webpack\lib\Compiler.js:318:10
at eval (eval at create (E:\code\bingbingle-fronted\node_modules@vue\cli-service\node_modules\tapable\lib\HookCodeFactory.js:33:10), :13:1)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The text was updated successfully, but these errors were encountered: