Coder Social home page Coder Social logo

Comments (7)

a7ul avatar a7ul commented on July 17, 2024 2

Looks like an issue with node-loader : webpack-contrib/node-loader#12
Although in our case since we are using file-loader it also copies to dist folder but the path is still linked to old absolute path due to a bug in node-loader.
I ll probably create a custom webpack loader to fix this. Posting for updates here.

from packer.

a7ul avatar a7ul commented on July 17, 2024 1

Hi @phuonghuynh I checked this and it is indeed a bug (not sure when was this introduced). I ll try and get a fix out quickly. Thanks for the details.

from packer.

a7ul avatar a7ul commented on July 17, 2024 1

Hi @phuonghuynh
Please use the following patch for your webpack config to solve the packaging issue

https://github.com/nodegui/nodegui-starter/pull/25/files

from packer.

a7ul avatar a7ul commented on July 17, 2024

Hi @phuonghuynh Are you using webpack to bundle your app?
because webpack should automatically pack all ur javascript and binaries into a dist folder. And that should basically remove your dependency on node modules. Packer would then copy that dist folder and add qt libraries needed and then pack into a dmg file.

So my question is have you changed ur setup to something different from what you get via the starter repos?

from packer.

phuonghuynh avatar phuonghuynh commented on July 17, 2024

So my question is have you changed ur setup to something different from what you get via the starter repos?

@master-atul Nope, clone the starter-repo (react+nodegui) and start developing my application with it. After adding some features, i use packer to see how it works, and it working on my dev mac; but no luck on other mac (fresh). I checked this repo, https://github.com/rongfengliang/nodegui-react-cal-packer; and get same issue with mine. Packer can make cal-app.app but it can not run on a fresh mac or delete folder node_modules (local).
How could i fix this issue?

I attach my package.json in case you need to see it.
package.json.zip

from packer.

phuonghuynh avatar phuonghuynh commented on July 17, 2024

Thanks for the update @master-atul and Happy new year πŸŽ‰

from packer.

phuonghuynh avatar phuonghuynh commented on July 17, 2024

Thanks @master-atul , it fixed

from packer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.