Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

How do I make authentication appear with this example code for web? #31

Closed
patelneel1994 opened this issue Aug 18, 2016 · 7 comments
Closed
Assignees

Comments

@patelneel1994
Copy link

I don't really want to include Google or Facebook sign in. I just wanted to test it with "skip sign in", but it didn't show. Since I don't want to set up Google and Facebook sign in I am not updating the stuff that I have to do with those two. Is there anything I have to do to make "skip sign in" appear? I deployed it locally and tried to access http://localhost:5000/feed but didn't work.

@nicolasgarnier
Copy link
Contributor

hey @patelneel1994 Do you have any errors in the JS Console? What steps have you skipped? FYI you should just have skipped Step 2 and 3 of Create Firebase Project in the README.md

@nicolasgarnier nicolasgarnier self-assigned this Aug 18, 2016
@patelneel1994
Copy link
Author

patelneel1994 commented Aug 18, 2016

Thank you for quick reply @nicolasgarnier I did skip step 2 and 3. I basically copied the header what was provided in Firebase console for web version and put it in index.html and then deployed it. It does deploy with security and storage rules. When I open the given hosted link it works fine. It opens up the page, but it doesn't have those sign in link! I can provide screenshot if you like!
I think I had deleted script block header.
Even after adding it back still doesn't work.
Hosted linke: https://fir-test-6d3dd.firebaseapp.com
screenshot1

Errors:

The stylesheet https://fir-test-6d3dd.firebaseapp.com/bower_components/material-design-lite/material.min.css was not loaded because its MIME type, "text/html", is not "text/css". fir-test-6d3dd.firebaseapp.com
The stylesheet https://fir-test-6d3dd.firebaseapp.com/bower_components/sweetalert/dist/sweetalert.css was not loaded because its MIME type, "text/html", is not "text/css". fir-test-6d3dd.firebaseapp.com
SyntaxError: expected expression, got '<' page.js:1:0
SyntaxError: expected expression, got '<' jquery.min.js:1:0
SyntaxError: expected expression, got '<' latinize.js:1:0
SyntaxError: expected expression, got '<' sweetalert.min.js:1:0
SyntaxError: expected expression, got '<' utils.js:1:0
SyntaxError: expected expression, got '<' firebase.js:1:0
SyntaxError: expected expression, got '<' auth.js:1:0
SyntaxError: expected expression, got '<' search.js:1:0
SyntaxError: expected expression, got '<' uploader.js:1:0
SyntaxError: expected expression, got '<' userpage.js:1:0
SyntaxError: expected expression, got '<' post.js:1:0
SyntaxError: expected expression, got '<' feed.js:1:0
SyntaxError: expected expression, got '<' routing.js:1:0
SyntaxError: expected expression, got '<' material.min.js:1:0

@nicolasgarnier
Copy link
Contributor

Ok it seeems the error happened because the scripts did not compile. Before deploying can you make sure you ran 'npm run build' ?

@nicolasgarnier
Copy link
Contributor

You can refer to this issue: #22

@patelneel1994
Copy link
Author

patelneel1994 commented Aug 19, 2016

These are the errors I got.
screenshot1

@nicolasgarnier
Copy link
Contributor

Have you ran npm install ? This should make sure that babel is installed.

@patelneel1994
Copy link
Author

patelneel1994 commented Aug 19, 2016

Even after running that command still gives me same error that I have attached above. Here is the log of "npm install"
screenshot1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants