vasturiano / kapsule Goto Github PK
View Code? Open in Web Editor NEWKapsule - A closure based Web Component library
License: MIT License
Kapsule - A closure based Web Component library
License: MIT License
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.
@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!
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.