Coder Social home page Coder Social logo

animated-gradient's People

Contributors

fdbiondi avatar

Watchers

 avatar  avatar

animated-gradient's Issues

Package does not load in modules appropriately

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.

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.