You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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'
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:
It throws this error:
When I loop through the Inflector object I only get a 'name' property that has 'name0' through 'name14' underneath it.
The text was updated successfully, but these errors were encountered: