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

Error in faker.js: name.toLowerCase is not a function #29

Open
jgamedev opened this issue Jun 2, 2016 · 3 comments
Open

Error in faker.js: name.toLowerCase is not a function #29

jgamedev opened this issue Jun 2, 2016 · 3 comments

Comments

@jgamedev
Copy link

jgamedev commented Jun 2, 2016

I'm using ember cli 2.5.0
After creating a brand new Ember project and issuing a simple scaffolding command such as:

ember generate scaffold foobar:string age:number

I get the following error:

File: app2/bower_components/Faker/build/build/faker.js
The Broccoli Plugin: [Babel] failed with:
TypeError: app2/bower_components/Faker/build/build/faker.js: name.toLowerCase is not a function
at check (/home/joao/ember_projects/app2/node_modules/ember-cli-babel/node_modules/broccoli-babel-transpiler/node_modules/babel-core/lib/transformation/transformers/validation/react.js:20:22)
at NodePath.CallExpression (/home/joao/ember_projects/app2/node_modules/ember-cli-babel/node_modules/broccoli-babel-transpiler/node_modules/babel-core/lib/transformation/transformers/validation/react.js:40:7)

@jgamedev
Copy link
Author

jgamedev commented Jun 2, 2016

After further investigation it seems that this is causing for some commands (ember new, ember install) trying to install bower components inside of the ember /app folder, even when such folder is not mentioned in the .bowerrc file

Deleting such folder and calling bower install directly seems to solve this issue.

@marcioj
Copy link
Owner

marcioj commented Jun 3, 2016

I'm unable to reproduce this issue in a fresh new app. This might be related with some custom setup in your app.

@jgamedev
Copy link
Author

jgamedev commented Jun 3, 2016

Thanks for trying, as I said it should only happen if you have a bower_components folder inside your app, not sure what is causing ember to create this folder for me

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

2 participants