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

Message: Class constructor BindingLanguage cannot be invoked without 'new' #723

Open
jeffflater opened this issue Oct 30, 2018 · 13 comments

Comments

@jeffflater
Copy link

I'm submitting a bug report
The issues occurs when using "aurelia-framework": "1.2.0" and started when the aurelia-binding@2.1.6 was published.

  • Library Version:
    major.minor.patch-pre

Please tell us about your environment:

  • Operating System:
    Windows 10

  • Node Version:
    v6.10.2

  • NPM Version:
    3.10.10

  • JSPM OR Webpack AND Version
    JSPM 0.16.32 | webpack 2.1.0-beta.17

  • Browser:
    Chrome latest

  • Language:
    Javascript

Current behavior:
Binding engine throws error = Message: Class constructor BindingLanguage cannot be invoked without 'new'

Expected/desired behavior:
Binding engine should not throw exception

  • What is the expected behavior?

  • What is the motivation / use case for changing the behavior?

@bigopon
Copy link
Member

bigopon commented Nov 1, 2018

@jeffflater This issue is pretty odd. Can you share a bit more about your project?

@StrahilKazlachev
Copy link
Contributor

It's like BindingLanguage is being extended - the subclass being compiled in ES6 and the parent class being in ES5.

@pravl
Copy link

pravl commented Nov 13, 2018

@jeffflater @bigopon @jeffflater I am facing the same issue. could anyone tell me what to do ?

@bigopon
Copy link
Member

bigopon commented Nov 13, 2018

@pj41195 Can you try delete node_modules and package-lock.json, and do a fresh npm install?

@pravl
Copy link

pravl commented Nov 13, 2018

@bigopon I tried but still getting the same error message.

@bigopon
Copy link
Member

bigopon commented Nov 13, 2018

Can you share a reproduction ? @pj41195

@pravl
Copy link

pravl commented Nov 13, 2018

"aurelia-framework": 1.2.0
"npm": 6.4.1
aurelia-binding@1.7.3
aurelia-templating-binding@1.5.2
babel-polyfill@6.26.0

These are the version which i am using.

I think it is surely related to some package upgradations. Previously it is working fine but after Jenkins rebuild the project, after that it is throwing an error
@bigopon

@bigopon
Copy link
Member

bigopon commented Nov 26, 2018

@pj41195 Hey sorry for late reply, have you solved this?

@fkleuver
Copy link
Member

@jeffflater @pj41195 Is upgrading to binding 2.x an option?

@pravl
Copy link

pravl commented Nov 27, 2018

@jeffflater @bigopon Yes this problem is solved by updating few packages..

"aurelia-fetch-client": "1.4.0",
"aurelia-framework": "1.2.0",
"aurelia-templating": "1.10.0",
"aurelia-templating-binding": "1.4.2",
"aurelia-templating-resources": "1.6.0",
"aurelia-templating-router": "1.3.1",
"aurelia-api": "3.1.1",
"aurelia-binding": "1.7.1",

But it creates another problem for me. IE11 through the error 'webpackJsonp' is undefined
Only IE 11. If you have any idea about this then it would be great for me.

@jeffflater updating binding to 2.x..x did not work for me. use "aurelia-validation": "1.1.2",

@mohammadamini0023
Copy link

nakun

@mohammadamini0023
Copy link

kir tutun

@bigopon
Copy link
Member

bigopon commented Jan 19, 2019

@mohammadamini0023 are you having the same issue?

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

6 participants