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

这个项目可以自己编译打包使用吗? #35

Open
yudidi opened this issue Jul 27, 2023 · 3 comments
Open

这个项目可以自己编译打包使用吗? #35

yudidi opened this issue Jul 27, 2023 · 3 comments

Comments

@yudidi
Copy link

yudidi commented Jul 27, 2023

执行sh build.sh 得到如下提示

main.go:19:12: pattern web/dist/*: no matching files found
@Jrohy
Copy link
Owner

Jrohy commented Jul 27, 2023

要先编译前端出来dist目录,再来打包的

@yudidi
Copy link
Author

yudidi commented Nov 17, 2023

ubuntu下打包报错

(base) root@hello:/home/hello/ydd_go/webssh/web# npm run build

> [email protected] build
> vue-cli-service build


⠹  Building legacy bundle for production...

 ERROR  Failed to compile with 1 error                                                                                                                                                                                14:41:59

 error  in ./src/App.vue?vue&type=script&lang=js&

Syntax Error: TypeError: Cannot read property 'name' of null

打包命令已经修改为ubuntu能用的,修复部分为:

  "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "lint": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service lint"
  },

@yudidi
Copy link
Author

yudidi commented Nov 17, 2023

这个和vue-cli,node,npm的版本有关系吗,有指定哪些版本打包吗?

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

2 participants