wailsapp / wails

Create beautiful applications using Go
https://wails.io
MIT License
25.34k stars 1.22k forks source link

'Undefined "wails"' Error when using with vue-router #295

Closed furkangkhsn closed 4 years ago

furkangkhsn commented 4 years ago

Description

After adding router to the project, the builded executable not working. The Error says 'Undefined "wails"'.

To Reproduce Steps to reproduce the behaviour:

  1. Run 'wails init'
  2. Select 'vue/webpack template'
  3. Run 'cd project_folder/frontend'
  4. Run 'vue add router'
  5. Select 'no history mode'
  6. Run 'cd ..'
  7. Build project with 'wails build'
  8. Run the executable

Expected behaviour Runs without error.

Screenshots image

System Details

Name Value
Wails Version v0.19.0-pre2
Go Version go1.13.4
Platform windows
Arch amd64
GO111MODULE (Not Set)
GCC 5.1.0
Npm 6.12.0
Node v12.13.0

Additional context Setup has vue, vuex, vuetify and vue-router.

furkangkhsn commented 4 years ago

Edit: It seems to work If you use "abstract" as the routing mode.

leaanthony commented 4 years ago

Hi! Thanks for investigating this. There are a number of people who will benefit from this.

On Mon, 25 Nov 2019, 23:13 Furkan Gökhasan, notifications@github.com wrote:

Edit: It seems to work If you use "abstract" as the routing mode.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wailsapp/wails/issues/295?email_source=notifications&email_token=AAO2SYE7YIEKQCJROECGRQTQVO6OHA5CNFSM4JRH2K2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFCF4WY#issuecomment-558128731, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAO2SYH6LEJ7QDWCUL2O5DDQVO6OHANCNFSM4JRH2K2A .

leaanthony commented 4 years ago

We are desperate for a quick tutorial on vue/vue-router/vuex, so if you find the time for a short tutorial, we would love to add that to the docs.

Splode commented 4 years ago

We are desperate for a quick tutorial on vue/vue-router/vuex, so if you find the time for a short tutorial, we would love to add that to the docs.

I ran into this issue when referencing the Vue Router guide. Nevertheless, I did successfully set up Vue Router and Vuex.

@leaanthony Is there still a desire for updated documentation?

leaanthony commented 4 years ago

If you have time, that would be perfect. Let me know if you need a hand with that. :+1: