Git Product home page Git Product logo

Comments (11)

benediktvaldez avatar benediktvaldez commented on May 18, 2024

One way I guess would be to rewrite everything with webpack/css-modules, and have the components come with their styles and everything..

from mozaik.

plouc avatar plouc commented on May 18, 2024

Yep,I totally agree with the webpack switch, it could be better, but moving to webpack requires a lot of work, there's already an issue on this, it seems someone has started something :).

from mozaik.

plouc avatar plouc commented on May 18, 2024

A fix should be to try to find the node modules directory and use its path instead of the hardcoded one.

from mozaik.

benediktvaldez avatar benediktvaldez commented on May 18, 2024

One suggestion was to look for package.json, and go up a level if you don't find one, until you find one (with some limitations I guess) - but feels hacky - but this kind of stuff usually does 😄

from mozaik.

plouc avatar plouc commented on May 18, 2024

npm root does this, perhaps there's a solution in its source code

from mozaik.

kurtextrem avatar kurtextrem commented on May 18, 2024

What is the best way to start developing extensions? For example if I move my extension into the node_modules folder of my dashboard, it somehow doesn't listen to mixins.
More specific: I add the ApiConsumerMixin to my ext, but componentDidMount is never called on it (even though I can see it on my dashboard); none of the functions of the mixins is called anywhen.
Somehow those are called when using real node modules though.

from mozaik.

plouc avatar plouc commented on May 18, 2024

@kurtextrem, this problem often occurs when you have several modules duplicated, locally, I use npm link (with npm 3+) with latest mozaik version.

from mozaik.

kurtextrem avatar kurtextrem commented on May 18, 2024

@plouc I have a funny other issue now:
info: Client #1 connected info: Setting timer for '....' info: removing interval for '....' info: Client #1 disconnected
And then more than one reconnect, even though only one window is open... which leads to Client #235 connected + disconnected after a few seconds.
Any ideas? I've tried reinstalling all node modules already.

from mozaik.

plouc avatar plouc commented on May 18, 2024

@kurtextrem, sorry for the late reply, can you share your package.json, config.js, app and server entry points ?

from mozaik.

plouc avatar plouc commented on May 18, 2024

@benediktvaldez, Mozaïk v2 now uses webpack, see installation instructions here.

from mozaik.

plouc avatar plouc commented on May 18, 2024

I close this issue as there's not much activity and the original issue should be solved with webpack.

from mozaik.

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.