Wails: Vue router not working

Created on 14 Sep 2019  路  2Comments  路  Source: wailsapp/wails

Description

When i run the app independently, the vue router works well in the browser but after bundling into executable and running, the view is blank. The template doesn't get loaded in the view.

To Reproduce
Steps to reproduce the behaviour:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behaviour
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

System Details

| Name | Value |
| ----- | ----- |
| Wails Version | v0.17.14-pre |
| Go Version | go1.12.9 |
| Platform | linux |
| Arch | amd64 |
| GO111MODULE | (Not Set) |
| GCC | 9.2.1 |
| Npm | v11.1.0 |
| Node | 6.11.3 |

Additional context
Add any other context about the problem here.

Most helpful comment

The view was blank because i had mode in route configuration set to history. It works as expected after removing it. Just in case anyone else has the same problem. Thanks @leaanthony

All 2 comments

Duplicate of #150

The view was blank because i had mode in route configuration set to history. It works as expected after removing it. Just in case anyone else has the same problem. Thanks @leaanthony

Was this page helpful?
0 / 5 - 0 ratings