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

打包时候遇到的问题 #1

Open
lhzandyqh opened this issue Jun 5, 2023 · 0 comments
Open

打包时候遇到的问题 #1

lhzandyqh opened this issue Jun 5, 2023 · 0 comments

Comments

@lhzandyqh
Copy link

老哥你好,我配置了生产环境,然后执行打包命令的时候为什么还会走.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.

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

1 participant