Giter Site home page Giter Site logo

Comments (3)

cmaurer avatar cmaurer commented on September 26, 2024

Yep. I think you are right. I forgot to bump the version when I released it the other night. I will fix it later today. Sorry about that. It was my first release.

Chris

from angularjs-nvd3-directives.

cmaurer avatar cmaurer commented on September 26, 2024

Ok, I updated bower.json and package.json to the latest version which should handle the mismatch problem.

The EMALFORMED error is actually coming from nvd3. Their bower.json is not formatted correctly. They have updated it in github, but bower is still messed up. I have been wrestling with this for a bit now as well.

One way I have found to handle it is to use bower link to link a local version of nvd3. Brian Ford talks about it in the blog post (http://briantford.com/blog/angular-bower.html).

But what happens if we find we need to change the directive in our component? Do we have to push a new version > of the component just to test it in the app? It turns out that Bower has a great feature for this case.
First, in the angular-my-component directory, run:
λ → bower link
In your application directory, run:
λ → bower link angular-my-component
What does this do? Basically, it creates a symbolic link from the angular-my-directive directory to the appropriate > directory inside of components for the app. Thus, when you make changes to the component, they'll be reflected ?> in your app. This is a great way to develop an app and a set of resuable components alongside each other.

Also, I usually have to clean the bower cache before I link.

Try this out and let me know if you have issues, etc.

Chris

from angularjs-nvd3-directives.

claytonasmith avatar claytonasmith commented on September 26, 2024

Ah - very nice - thanks for the good response. First try failed because I cloned nvd3 into my app/bower_components directory. But I realized that might be the problem, so I moved it to . For others that have similar problems with bower packages, here's how to link to local copies, using nvd3 as an example:

(
)-> git clone https://github.com/novus/nvd3.git
()-> cd nvd3
(
/nvd3)-> bower link
bower link /Users/clayton/.local/share/bower/links/nvd3 > /Users/clayton/nvd3
(~/nvd3)-> cd /myApp
(
/myApp)-> bower link nvd3
bower link /Users/clayton/myApp/app/bower_components/nvd3 > /Users/clayton/.local/share/bower/links/nvd3

Hopefully this will work. I get some warnings when I run 'bower list.'

image

from angularjs-nvd3-directives.

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.