react-nodegui
react-nodegui copied to clipboard
undefined symbol: _ZN4qode9qode_argvE when bundling with Parcel and pnpm
Describe the bug When trying to run a compiled by Parcel plugin React NodeGUI app, it throws an error:
/home/v1rtl/Coding/quark-player/dist/index.js:116
throw error;
^
Error:node_modules/.pnpm/registry.npmjs.org/@nodegui/nodegui/0.18.2/node_modules/@nodegui/nodegui/build/Release/nodegui_core.node: undefined symbol: _ZN4qode9qode_argvE
To Reproduce Steps to reproduce the behavior:
- Install pnpm
mkdir test-app && cd test-app- Install these dependencies using
pnpm i:
{
"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.5",
"@babel/preset-react": "^7.9.4",
"@babel/preset-typescript": "^7.9.0",
"@types/react": "^16.9.34",
"@types/react-dom": "^16.9.6",
"parcel": "^1.12.4",
"parcel-plugin-nodegui": "^1.0.3",
"typescript": "^3.8.3"
},
"scripts": {
"dev": "parcel --target node index.tsx"
},
"dependencies": {
"@nodegui/nodegui": "^0.18.2",
"@nodegui/react-nodegui": "^0.6.1",
"react": "^16.13.1",
"react-dom": "^16.13.1"
}
}
Expected behavior It should start a React NodeGUI application
Desktop (please complete the following information):
- OS: [e.g. Mac, Linux or Windows] Linux
- NodeGUI version 0.18.2
- React NodeGUI version 0.6.1
- OS Version: 5
Yes, this is because you are using node to run the nodegui core addon. The core addon requires that you use qode binary instead.
I am not very familiar with parcel . But I am guessing this is parcel tries to use node binary instead of qode.
@master-atul I tried to set it up with official Parcel plugin
will try with Webpack