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

vue-cli3 打包部署后报错 #64

Closed
whapply opened this issue Jun 19, 2021 · 4 comments
Closed

vue-cli3 打包部署后报错 #64

whapply opened this issue Jun 19, 2021 · 4 comments
Assignees
Labels
no response Not response from issuer wontfix This will not be worked on

Comments

@whapply
Copy link

whapply commented Jun 19, 2021

描述 bug
vue-cli3 打包部署到服务器后报错 s.inherits is not a function

复现
请描述复现该bug的步骤:

  1. vue-cli3 打包命令 vue-cli-service build --mode test
    将包部署到服务器后, 访问该页面报错 s.inherits is not a function

请填写您的Node或浏览器版本:

  • Browser 版本 90.0.4430.85(正式版本) (64 位)
  • Node v12.13.1
@chenquincy
Copy link
Owner

@whapply 请提供更详细的报错信息

@chenquincy chenquincy added the no response Not response from issuer label Jun 22, 2021
@haomaigege
Copy link

同样的报错,详细错误栈信息如下:

TypeError: util.inherits is not a function
    at node_modules/streamifier/lib/index.js (index.js:23)
    at __require2 (chunk-IHTDASF6.js?v=e28aaaaa:17)
    at Object.<anonymous> (index.js:25)
    at node_modules/cgbi-to-png/index.js (index.js:151)
    at __require2 (chunk-IHTDASF6.js?v=e28aaaaa:17)
    at node_modules/app-info-parser/src/ipa.js (ipa.js:41)
    at __require2 (chunk-IHTDASF6.js?v=e28aaaaa:17)
    at node_modules/app-info-parser/src/index.js (index.js:11)
    at __require2 (chunk-IHTDASF6.js?v=e28aaaaa:17)
    at dep:app-info-parser:1

@chenquincy
Copy link
Owner

@haomaigege @whapply 这个问题是 vite 的构建机制导致的,和 app-info-parser 无关,参考:vitejs/vite#2985

我没办法修改依赖库的代码,目前看没什么好的解决办法,建议通过 cdn 方式引入 app-info-parser

@chenquincy chenquincy added the wontfix This will not be worked on label Jun 22, 2021
@arrosev
Copy link

arrosev commented Aug 8, 2022

请问未打包之前在开发模式测试是否正常?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no response Not response from issuer wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants