Giter Club home page Giter Club logo

Comments (5)

stefanpenner avatar stefanpenner commented on July 20, 2024

@hy-brasil hey, can you describes the steps you used to that resulted in the problem?

from ember-radio-button.

hy-brasil avatar hy-brasil commented on July 20, 2024

Hiy stefan,
I just installed it as per instructions:

npm install ember-radio-button --save-dev

And then used the radio buttons in my template:

{{#each class in model.classes}}
         {{#radio-button value=class.class_id groupValue=selectedClass changed="classChanged"}}
         {{class.class_name}}
         {{/radio-button}}   
        <br/>
    {{/each}}

And in my controller defined the 'classChanged'

And it all worked fine.

Then i thought I would deploy it ...

So I did

ember build --environment=production

And then when I navigate to the page I get the console output:

Uncaught Error: Could not find module ember-radio-button/components/radio-button

And thats all the steps really...

ember version: 0.1.2
node: 0.10.24
npm: 2.1.3

from ember-radio-button.

stefanpenner avatar stefanpenner commented on July 20, 2024

@denisnazarov any ideas?

from ember-radio-button.

denisnazarov avatar denisnazarov commented on July 20, 2024

@stefanpenner Seems to be fine in all of the apps we use it in. The file it is referencing is in https://github.com/yapplabs/ember-radio-button/blob/master/addon/components/radio-button.js

It is in the addon dir, not the app dir. The component in the app dir references it like so: https://github.com/yapplabs/ember-radio-button/blob/master/app/components/radio-button.js

I will try to dig deeper and build it in a clean app later.

from ember-radio-button.

hy-brasil avatar hy-brasil commented on July 20, 2024

Ok, I've tried again by creating a new app and installing the radio buttons.
And build for production environment.
And it works when deployed to server.
So, now trying to figure out what is the difference between that and my app.

from ember-radio-button.

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.