Skip to content

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

@graham-sportsmgmt

Description

@graham-sportsmgmt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions