-
Notifications
You must be signed in to change notification settings - Fork 263
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
Class constructor FirestoreAdapter cannot be invoked without 'new' #568
Comments
Ops... I see, you use Ember v3.8 here with EmberFire v3-rc... I check it
out again... but maybe it is totally legit... this is still a bug... ;)
…On Sat, 23 Mar 2019 at 18:57, Sam Selikoff ***@***.***> wrote:
I'm trying out v3 on a new 3.8 app and running into this error when trying
to access this.store in a controller:
Class constructor FirestoreAdapter cannot be invoked without 'new'
I believe this is the same error @zoltan-nz <https://github.com/zoltan-nz>
pointed out on #553
<#553 (review)>
.
e.g.
DEBUG: -------------------------------
DEBUG: Ember : 3.8.0
DEBUG: Ember Data : 3.8.0
DEBUG: jQuery : 3.3.1
DEBUG: EmberFire : 3.0.0-rc.1-4
DEBUG: Firebase : 5.9.1
DEBUG: -------------------------------
Test case
I can provide a repo if needed
Expected behavior
I can use the store! :)
Actual behavior
I see this error message:
Uncaught TypeError: Class constructor FirestoreAdapter cannot be invoked
without 'new'
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#568>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA9odwM6YGSJC_z8Rn6aSMTM39jPCQYGks5vZcJNgaJpZM4cEvEV>
.
|
Kind of weird that my application was working fine a couple of hours ago with EmberFire 3.0.0-rc.1-4 and Firebase 5.8.6, and suddenly it started throwing this error |
I've read that this is more a Babel issue, I haven't tested but here they say that configuring Babel presets could help: https://stackoverflow.com/a/51860850 and babel/babel#4269 (comment) and koajs/koa#568 (comment) |
I'm having the same issue. @samselikoff did you find a solution?
|
@bnetter I found a workaround, but not sure how other things it'll break, I'm actually right now testing for a project. The problem seems related to babel and the way it handles native classes, when searching in Google I found a lot of "solutions" that pointed to exclude Well, the workaround I've just see that allows me to build the project is to add
Well, it can be done properly just removing the The first problem I've found it's that when using Fastboot |
I also had this and it went away after upgrading ember-source. Maybe version +3.5? Didn't need to touch targets.js. |
I'm trying out v3 on a new 3.8 app and running into this error when trying to access
this.store
in a controller:I believe this is the same error @zoltan-nz pointed out on #553.
Test case
I can provide a repo if needed
Expected behavior
I can use the store! :)
Actual behavior
I see this error message:
The text was updated successfully, but these errors were encountered: