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

/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 #58

Open
MZfengdada opened this issue Nov 9, 2023 · 5 comments

Comments

@MZfengdada
Copy link

报错显示没有这个共享库怎么解决呢,报错信息如下:
/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

@MZfengdada
Copy link
Author

I run “sudo apt install libgtk-3-0” and the problem was resolved

@MZfengdada
Copy link
Author

However, the problem "error while loading shared libraries: libasound.so.2" appears later

@MZfengdada
Copy link
Author

I then ran the "sudo apt-get install libasound2" command to fix the problem

@MZfengdada
Copy link
Author

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:

┗ ----------------------------"

@MZfengdada
Copy link
Author

sed -i "s/scope=/slot-scope=/g" grep "scope=" -rl ./src/renderer/components

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