Skip to content

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

Closed

Description

> 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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