Blank Page
MauScheff opened this issue · comments
When I do sails lift
(after following the instructions), and I go to http://localhost:1337 I get a blank
page. The source code loads, but no page renders. If I go to http://localhost:1337/something I get the default sails 404. Am I doing something wrong? How can I get the page to load?
I get the following errors on the console:
Error: [$location:nobase] $location in HTML5 mode requires a tag to be present!
Error: [$compile:ctreq] Controller 'ngInclude', required by directive 'ngInclude', can't be found!
in app.js change this line:
| $locationProvider.html5Mode(true);
to: |
| | | + |
| | | + $locationProvider.html5Mode({ |
| | | + enabled: true, |
| | | + requireBase: false |
| | | + }); |
or add the base tag in layout.ejs
Dani Koren
On Friday, November 21, 2014 5:22 PM, Mauricio Zepeda <notifications@github.com> wrote:
When I do sails lift (after following the instructions), and I go to http://localhost:1337 I get a blank
page. The source code loads, but no page renders. If I go to http://localhost:1337/something I get the default sails 404. Am I doing something wrong? How can I get the page to load?—
Reply to this email directly or view it on GitHub.
Thank you!
On Fri, Nov 21, 2014 at 4:26 PM, danikoren notifications@github.com wrote:
in app.js change this line:
| $locationProvider.html5Mode(true);
to: |
| | | + |
| | | + $locationProvider.html5Mode({ |
| | | + enabled: true, |
| | | + requireBase: false |
| | | + }); |or add the base tag in layout.ejs
Dani KorenOn Friday, November 21, 2014 5:22 PM, Mauricio Zepeda <
notifications@github.com> wrote:When I do sails lift (after following the instructions), and I go to
http://localhost:1337 I get a blank
page. The source code loads, but no page renders. If I go to
http://localhost:1337/something I get the default sails 404. Am I doing
something wrong? How can I get the page to load?—
Reply to this email directly or view it on GitHub.—
Reply to this email directly or view it on GitHub
#14 (comment).
This should be fixed by a recent commit.