Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

This page requires JavaScript. Please enable it in your browser. #1723

Open
nlaycock opened this issue Feb 24, 2017 · 7 comments
Open

This page requires JavaScript. Please enable it in your browser. #1723

nlaycock opened this issue Feb 24, 2017 · 7 comments

Comments

@nlaycock
Copy link

nlaycock commented Feb 24, 2017

Hi guys,

I am using the 0.5.0 build. Randomly I am getting this "This page requires JavaScript. Please enable it in your browser." response to my browser. I have been using the YO generator and I know there needs to be a few updates made (like updating the URL in the client service). It is happening A LOT but with no rhyme or reason. I am using Chrome and I have the dev tools open. However with the dev tools open, I get the same thing. Also happens in Safari.

All HTTP request to the server are coming back as 200 OK.

I can see the noscript tags in the layout.server.view.html - but I do not want to remove them. Seeing that JS is definitely turned on for my browser, I am at a total loss as to why this might happen.

To reproduce this, just create a new website using Yeoman,

then do yo meanjs:crud-module

follow the prompts. If I try and create a module called Book and just have the model with a value of name, all I need to do is go to List Books > create book > fill out form > save. Then the view page is blank. Navigate back to the list view - blank. Refresh (might work).

if you get to view a book, then try and edit it, I get a get call to a url that looks like this:

http://localhost:3000/books/modules/books/client/views/form-book.client.view.html

@lirantal lirantal self-assigned this Apr 1, 2017
@lirantal
Copy link
Member

lirantal commented Apr 1, 2017

@nlaycock still happening?
can you clone the repo and test if you're getting the same?

@nlaycock
Copy link
Author

Hi, I am really sorry for the late reply.

From memory, the error was actually to do with the routes in the client.routes.js files that were created from the yeoman generator. The URLs that were being generated needed to have a / at the start. Adding those fixed the issue. This is actually the same as the urls in the *.client.service.js files.

@a3aakash
Copy link

@nlaycock I am also facing the same issue. please let me know what is the solution for this thing. In previous version it was working fine but after the update it removes / from the client.service.js files. Please let me know if it is a bug or need changes.

@mtrajano
Copy link

Any solution to this? Still seeing this error

@nlaycock
Copy link
Author

The only thing that I have done to get around this was to manually go through the *.client.service.js files and add the missing '/'. I do not know if the Yeoman generator is getting as much love as this repo is. Which is a shame, because I LOVE IT.

@mtrajano
Copy link

@nlaycock thanks for the response man that fixed it, seems like a silly mistake. Pretty surprised no one has fixed it in months.

@nlaycock
Copy link
Author

If someone did, I would be eternally grateful. I use to Yeoman generator ALL the time. I will try and look into at some stage when I have a minute...

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

No branches or pull requests

4 participants