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

Deployed app not working #46

Closed
Mayhem50 opened this issue Jun 12, 2016 · 11 comments
Closed

Deployed app not working #46

Mayhem50 opened this issue Jun 12, 2016 · 11 comments

Comments

@Mayhem50
Copy link

Mayhem50 commented Jun 12, 2016

I have migrated my application from firebase-element to polymerfire. Everything works fine until I deploy the app.
After, on local or on web many errors appear.
On web, errors are : Uncaught NotSupportedError, Uncaught TypeError: Polymer.Base._getExtendedPrototype is not a function, etc
After deploying, on local, it seams that it's an iframe that points to mywebsite.firebaseapp.com/__/auth is corrupted. Errors are same.
The workarround I find is to have a project for auth and database and deploy on other project. It resolves only auth corruption.

After long search I thinl the problem comes from polymer build process

@napoo80
Copy link

napoo80 commented Jun 14, 2016

I'm having the same problem, thanks for sharing your workarround.

I'm usign polymer-cli for building, @Mayhem50 are you?

@mgibas
Copy link

mgibas commented Jun 20, 2016

Very similar issues here.
In my case mywebsite.firebaseapp.com/__/auth iframe doubles or triples every request.

example:
https://project-3846386819515834955.firebaseapp.com/

@mbleigh
Copy link
Contributor

mbleigh commented Jun 23, 2016

@mgibas I'm not seeing any errors when I open your site -- did you work out the problem?

@bryanwood
Copy link

I'm also hitting this issue, the suggested rewrite is causing requests to /__/auth and similar to return the contents of index.html

@mbleigh
Copy link
Contributor

mbleigh commented Jun 23, 2016

Are you configuring your auth-domain on firebase-app correctly? If you're pointing it at a firebaseapp.com domain there shouldn't be an issue here...

@Quelu
Copy link

Quelu commented Jun 23, 2016

Yes same here and I've correctly configured my auth-domain both in the Firebase console and in my firebase-app but I still have the issue.
The only way to have the auth working is with the workaround given by @Mayhem50

I'm also using the polymer-cli for building my project, could this issue come from this ?
Here is my project to let you try auth.

@mgibas
Copy link

mgibas commented Jun 23, 2016

@mbleigh yeah, I had to deploy a fix - sorry for that.
It seams to be a polymer-cli issue cause I switched to gulp (configuration from PSK) and all issues went away.

@mbleigh
Copy link
Contributor

mbleigh commented Jun 23, 2016

@cdata any ideas on what this might be?

@mshockwave
Copy link

I use Polymer CLI and encountered the same problem

@mshockwave
Copy link

I use @Mayhem50 's solution and it works. I delete every rewrite rules in firebase.json but the problem is still exist, so perhaps the polymer build tool add some additional rewriting / forwarding rules?
I would like to forward this thread to issues of polymer-cli repo.

@locomuco
Copy link

locomuco commented Jul 8, 2016

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

9 participants