webssh icon indicating copy to clipboard operation
webssh copied to clipboard

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

Open yudidi opened this issue 2 years ago • 3 comments

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

main.go:19:12: pattern web/dist/*: no matching files found

yudidi avatar Jul 27 '23 06:07 yudidi

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

Jrohy avatar Jul 27 '23 06:07 Jrohy

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 avatar Nov 17 '23 07:11 yudidi

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

yudidi avatar Nov 17 '23 07:11 yudidi