Giter Club home page Giter Club logo

kapsule's People

Contributors

gabynevada avatar tiagoad avatar vasturiano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

kapsule's Issues

Webpack Build Issues with 1.14.3

Hello! We're using react-force-graph and ran into an issue with webpack build today during dependency updates due to the lodash-es/debounce update.

We're using webpack 5.78.0 and the recent update caused the following error:

ERROR in ./node_modules/kapsule/dist/kapsule.mjs 1:0-42
Module not found: Error: Can't resolve 'lodash-es/debounce' in '{project_path}/node_modules/kapsule/dist'
Did you mean 'debounce.js'?
BREAKING CHANGE: The request 'lodash-es/debounce' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
resolve 'lodash-es/debounce' in '{project_path}/node_modules/kapsule/dist'

Let me know if I can provide any more info or help fix, but we can use 1.14.1/2 without any issues.

We really appreciate the time that effort that goes into making these tools!

edit - could be due to webpack settings as well, I'm not enough of a webpack guru to tell whether that's true or not.

Replace debounce with lodash-es package to avoid tree shaking optimization warning

@vasturiano I got another optimization warning, this time for the debounce package

Warning message for reference

Warning: {{project_path}}/node_modules/kapsule/dist/kapsule.mjs depends on 'debounce'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Would it be possible to replace it for the lodash-es alternative?

The pull request with the fixes is at #9

Thanks again for your work!

Production build error

Hi,

thanks for kapsule! I use kapsule/react-kapsule to integrate timeline-chart into react application.

I am happy with this combination but when I need to publish my project this error occurs:

TypeScript error in C:/dev/cs/condition_monitoring/condition_monitoring/Frontend/node_modules/kapsule/dist/kapsule.d.ts(39,3):
Property 'resetProps' of type '(() => KapsuleInstance) | undefined' is not assignable to string index type 'PropGetter | PropSetter | KapsuleMethod'.  TS2411
    37 | interface KapsuleInstance {
    38 |   (constructorItem: any): KapsuleInstance;
  > 39 |   resetProps?(): KapsuleInstance;
       |   ^
    40 |   [propOrMethod: string]: PropGetter | PropSetter | KapsuleMethod;
    41 | }
    42 |

Could you help me? Do you know where can be problem?

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.