Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ember-inflector not available in ember-cli generate #113

Open
graham-sportsmgmt opened this issue Nov 8, 2016 · 2 comments
Open

ember-inflector not available in ember-cli generate #113

graham-sportsmgmt opened this issue Nov 8, 2016 · 2 comments

Comments

@graham-sportsmgmt
Copy link

I'm trying to use ember-inflector in my custom blueprint but it doesn't seem to be exposing the singularize and pluralize methods. I have verified that ember-inflector is in package.json and node-modules.

Here is some test code I have at the top of my locals function:

    let Inflector = require('ember-inflector');
    console.log('Inflector: ' + Inflector.inflector.pluralize("taco")); 

It throws this error:

Cannot read property 'pluralize' of undefined

When I loop through the Inflector object I only get a 'name' property that has 'name0' through 'name14' underneath it.

@sandstrom
Copy link
Contributor

I'm doing some issue gardening 🌱🌿 🌷 and came upon this issue. Since it's quite old, would you mind checking if this is still an issue with the latest version? If it isn't, maybe we can close this issue?

By closing some old issues we reduce the list of open issues to a more manageable set.

With 4.0.0 you should be able to do import { pluralize } from 'ember-inflector'

@Elawphant
Copy link

this is still an issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants