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

wrong paths requested when packing (windows) #1

Closed
elviosak opened this issue Aug 31, 2019 · 3 comments
Closed

wrong paths requested when packing (windows) #1

elviosak opened this issue Aug 31, 2019 · 3 comments

Comments

@elviosak
Copy link

i tried packer on react-starter app with:

"pack": "nodegui-packer --init starterApp",
"postpack": "nodegui-packer --pack ./dist"

"@nodegui/nodegui": "^0.1.7",
"@nodegui/react-nodegui": "^0.1.5",
"@nodegui/packer": "^1.1.0",
"@nodegui/qode": "^1.0.4",

deleted \node_modules, \dist and ran npm install, npm run build and npm run pack

got a few errors, so i copied the files following the error messages and was able to pack,

first file not found was node_modules\@nodegui\qode\dist\1.0.4\windeployqt.exe
solved by copying contents from node_modules\@nodegui\qode\dist\1.0.4\bin\ to node_modules\@nodegui\qode\dist\1.0.4\,

next file node_modules\@nodegui\qode\dist\bin\Qt5Core.dll
solved copying \bin folder from node_modules\@nodegui\qode\dist\1.0.4\ to node_modules\@nodegui\qode\dist\

and then got stderr: Unable to find the platform plugin.
and i copied \plugins folder from node_modules\@nodegui\qode\dist\1.0.4\ to node_modules\@nodegui\qode\dist\

this file was also not found \node_modules\@nodegui\qode\dist\mkspecs\qconfig.pri but that didn't stop the packing

after these 3 steps the app was packed successfully,

i couldn't figure out how to fix it on packer script, so i hope this helps.

@a7ul
Copy link
Collaborator

a7ul commented Sep 1, 2019

Hi @slidinghotdog

Thanks for pointing this out.
Its all been fixed on v1.1.2 of packer

Cheers 🍺

@a7ul a7ul closed this as completed Sep 1, 2019
@a7ul
Copy link
Collaborator

a7ul commented Sep 1, 2019

One small thing in the case of windows:

Please do

rmdir node_modules 
rmdir C:\Users\<username>\AppData\Local\qode-nodejs 

So that you clear out all the cached versions of qode.

@elviosak
Copy link
Author

elviosak commented Sep 1, 2019

v1.1.2 is working great, thanks!

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

2 participants