Comments (1)
Describe the bug
I'm on intel mac Monterey 12.6.3. I was trying to replicate the example in nodegui-starter. I've upgraded the version to 0.62, I see the following error:
Error: dlopen(/Users/mac/Downloads/nodegui-starter/dist/nodegui_core-2c9dcae924e108484f5c27be2b6256fc.node, 0x0001): Library not loaded: '@rpath/QtSvgWidgets.framework/Versions/A/QtSvgWidgets'
Node.js v18.12.1 and also tested on v.16.8.0
To Reproduce
Steps to reproduce the behavior:
I use the following config files, and everything else down to index.ts are the same as the nodegui-starter.
webpack config
const path = require("path");
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
module.exports = {
mode: process.NODE_ENV || "development",
entry: "./src",
target: "node",
output: {
path: path.resolve(__dirname, "dist"),
filename: "index.js",
},
module: {
rules: [
{
test: /\.tsx?$/,
use: "ts-loader",
exclude: /node_modules/,
},
{
test: /\.(png|jpe?g|gif|svg|ico)$/i,
use: [
{
loader: "file-loader",
//options: { publicPath: "dist" },
},
],
},
{
test: /\.node$/,
use: [
{
loader: "native-addon-loader",
options: { name: "[name]-[hash].[ext]" },
},
],
},
],
},
resolve: {
extensions: [".tsx", ".ts", ".js", ".jsx"],
},
plugins: [new CleanWebpackPlugin()],
};
tsconfig:
{
"compilerOptions": {
"incremental": true,
"target": "es2016",
"module": "commonjs",
"allowJs": true,
"checkJs": false,
"outDir": "./dist",
"sourceMap": true,
"strict": true,
"alwaysStrict": true,
"moduleResolution": "node",
"esModuleInterop": true
},
"include": ["**/*"]
}
package.json:
{
"name": "nodegui-starter",
"version": "1.0.0",
"main": "index.js",
"author": "Atul R <[email protected]>",
"license": "MIT",
"private": true,
"scripts": {
"build": "webpack --mode production",
"start": "webpack && qode ./dist/index.js",
"debug": "webpack && qode --inspect ./dist/index.js"
},
"dependencies": {
"@nodegui/nodegui": "0.57.1",
"@nodegui/os-utils": "^1.1.2"
},
"devDependencies": {
"@nodegui/packer": "^1.5.0",
"@types/node": "^18.7.14",
"clean-webpack-plugin": "^4.0.0",
"file-loader": "^6.2.0",
"native-addon-loader": "^2.0.1",
"ts-loader": "^9.3.1",
"typescript": "^4.8.2",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
}
}
We've fixed it by following these steps #1004
from nodegui.
Related Issues (20)
- Failed to install HOT 2
- The packer is broken and nobody is attending to the repo HOT 2
- πQMenu causes the application to crash HOT 5
- Is anybody working on it ? HOT 5
- How to open the "console" window after build HOT 1
- Make icons optional for QTabWidget.addTab HOT 2
- Sub-Tree items disappear when window is resized
- Arm64 support for MacOS HOT 2
- cannot open shared object file
- Consider using getters and setters
- Display above fullscreen apps (games)
- Cannot access children!
- Slight typo in tutorial.md
- mqtt.js client causes event loop to stop HOT 2
- Linux Wayland support
- npm install with custom Qt installation is looking for Qt6 libraries, however qt5 is mentioned in the Readme (m2 Mac) HOT 2
- How To use NodeGui without typescript?
- Please implement StackedLayout
- NodeGui build for arm64
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodegui.