Giter Club home page Giter Club logo

Comments (8)

davideicardi avatar davideicardi commented on May 26, 2024 2

If the dependency is already available on the host I think you should not do nothing. I mean they are not installed but they are available automatically. staticDependencies are dependencies that you want to "hack" so that the host can pass something special to the plugin.

If you don't do nothing it works at runtime? Or you have some missing dependency error?

Also consider to use hostRequire=undefined as an option to disable any transitive dependency from host to plugin.

from live-plugin-manager.

davideicardi avatar davideicardi commented on May 26, 2024 1

No doc for now, sorry ... but here the relevant code:

from live-plugin-manager.

davideicardi avatar davideicardi commented on May 26, 2024

Which is the package that cause problems? Or this happened for all packages when using your library?

from live-plugin-manager.

davideicardi avatar davideicardi commented on May 26, 2024

Maybe you can send ne the logs by calling your app wih DEBUG=* environment variable.

from live-plugin-manager.

g5becks avatar g5becks commented on May 26, 2024

It only has issues when being run from my cli program. I import it in another test program and it works fine.

I figured out what the issue is though. PluginManager is saying the dependencies for plugins are already available on the host. The way I am using live-plugin-manager is by reading a config file that lists plugins to install. A plugin will be a lib from my monorepo, which in turn depends on the same dependencies as my cli does. So it's always going to say the plugin is already available.

It looks like staticDependencies will solve this issue if I am not mistaken.

I will give that a try and report back.

from live-plugin-manager.

g5becks avatar g5becks commented on May 26, 2024

The thing is, I don't know where the cli will be installed. It could be local to a project that is running it, and the project that needs the dependency in another project. I may be mistaken, but I don't think the node module resolver would be able to find it that way.

from live-plugin-manager.

g5becks avatar g5becks commented on May 26, 2024

I never knew about hostRequire=undefined option. If you have a sec. Can you link me to some docs on that?

Thanks a lot for your help btw.

from live-plugin-manager.

g5becks avatar g5becks commented on May 26, 2024

great. I'll check it out.

Thanks again for the assistance.

from live-plugin-manager.

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.