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

TypeError: Class constructor Fellow cannot be invoked without 'new' #81

Closed
balupton opened this issue May 1, 2016 · 1 comment
Closed

Comments

@balupton
Copy link
Member

balupton commented May 1, 2016

> node --harmony -e "require('editions').requirePackage(process.cwd(), require, 'test.js')"

projectz integration suite
projectz integration suite ➞  compile project with projectz
info: Initialising project
info: Initialised project
info: Loading changes
info: Reading readme file: /Users/balupton/Projects/edition-stuff/projectz/test-fixtures/src/LICENSE.md
info: Reading readme file: /Users/balupton/Projects/edition-stuff/projectz/test-fixtures/src/README.md
info: Reading package file: /Users/balupton/Projects/edition-stuff/projectz/test-fixtures/src/bower.json
info: Reading package file: /Users/balupton/Projects/edition-stuff/projectz/test-fixtures/src/component.json
info: Reading package file: /Users/balupton/Projects/edition-stuff/projectz/test-fixtures/src/package.json
info: Reading package file: /Users/balupton/Projects/edition-stuff/projectz/test-fixtures/src/projectz.cson
error: TypeError: Class constructor Fellow cannot be invoked without 'new'
  at new Person (/Users/balupton/Projects/edition-stuff/projectz/es2015/lib/person.js:24:73)
  at Function.create (/Users/balupton/Projects/edition-stuff/projectz/node_modules/fellow/source/index.js:18:42)
  at Function.ensure (/Users/balupton/Projects/edition-stuff/projectz/node_modules/fellow/source/index.js:40:26)
  at value.split.map (/Users/balupton/Projects/edition-stuff/projectz/node_modules/fellow/source/index.js:117:51)
  at Array.map (native)
  at Function.add (/Users/balupton/Projects/edition-stuff/projectz/node_modules/fellow/source/index.js:117:30)
  at Projectz.mergeData (/Users/balupton/Projects/edition-stuff/projectz/es2015/lib/projectz.js:520:22)
  at ambi (/Users/balupton/Projects/edition-stuff/projectz/node_modules/ambi/out/lib/ambi.js:55:18)
  at Domain.fireMethod (/Users/balupton/Projects/edition-stuff/projectz/node_modules/taskgroup/out/lib/taskgroup.js:397:23)
  at Domain.run (domain.js:221:14projectz integration suite ➞  compile project with projectz ✘   
projectz integration suite ✘  

Due to https://phabricator.babeljs.io/T7328

Workaround will either be dropping node <= 4 compat, or as fellow uses editions, use fellow's es2015 edition

@balupton
Copy link
Member Author

pretty sure this was resolved by including fellow/es2015 instead

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

1 participant