/home/ubuntu/hioshop/hioshop-admin/node_modules/electron/dist/electron: error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory
报错显示没有这个共享库怎么解决呢,报错信息如下: /home/ubuntu/hioshop/hioshop-admin/node_modules/electron/dist/electron: error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory
I run “sudo apt install libgtk-3-0” and the problem was resolved
However, the problem "error while loading shared libraries: libasound.so.2" appears later
I then ran the "sudo apt-get install libasound2" command to fix the problem
But there's another problem. Here's the problem: "WARNING in ./~/vue-loader/lib/template-compiler?{"id":"data-v-e0e9a930","hasScoped":true}!./~/vue-loader/lib/selector.js?type=template&index=0!./src/renderer/components/Freight/FreightAddPage.vue (Emitted value instead of an instance of Error) the "scope" attribute for scoped slots have been deprecated and replaced by "slot-scope" since 2.5. The new "slot-scope" attribute can also be used on plain elements in addition to to denote scoped slots. @ ./src/renderer/components/Freight/FreightAddPage.vue 10:2-218 @ ./src/renderer/router/index.js @ ./src/renderer/main.js @ multi ./.electron-vue/dev-client ./src/renderer/main.js Child html-webpack-plugin for "index.html": Asset Size Chunks Chunk Names index.html 1.46 MB 0 Child extract-text-webpack-plugin: Asset Size Chunks Chunk Names fonts/element-icons.ttf 56 kB fonts/element-icons.woff 28.2 kB
┗ ----------------------------
┏ Electron -------------------
(electron:3864): Gtk-WARNING **: 01:27:54.824: cannot open display:
┗ ----------------------------"
sed -i "s/scope=/slot-scope=/g" grep "scope=" -rl ./src/renderer/components