fdbiondi / animated-gradient Goto Github PK
View Code? Open in Web Editor NEWTilted gradient effect
License: MIT License
Tilted gradient effect
License: MIT License
Hi! ๐
Firstly, thanks for your work on this project! ๐
Today I used patch-package to patch [email protected]
for the project I'm working on.
I installed the package succesfully, however when trying to run and load it, it wont find any of the sub-modules due to the missing '.js' files in each file.
Here is the diff that solved my problem:
diff --git a/node_modules/anim-gradient/src/gradient.js b/node_modules/anim-gradient/src/gradient.js
index ed9320e..897b4bf 100755
--- a/node_modules/anim-gradient/src/gradient.js
+++ b/node_modules/anim-gradient/src/gradient.js
@@ -4,7 +4,7 @@
* commented out for now.
*/
-import MiniGl from './minigl'
+import MiniGl from './minigl.js'
// Converting colors to proper format
function normalizeColor (hexCode) {
diff --git a/node_modules/anim-gradient/src/index.js b/node_modules/anim-gradient/src/index.js
index be632e1..9fc02b7 100644
--- a/node_modules/anim-gradient/src/index.js
+++ b/node_modules/anim-gradient/src/index.js
@@ -1,3 +1,3 @@
-import { Gradient } from './gradient'
+import { Gradient } from './gradient.js'
export { Gradient }
This issue body was partially generated by patch-package.
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.