wailsapp / wails

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

Vue3 vue-router@4 issue #682

Closed milchinskiy closed 3 years ago

milchinskiy commented 3 years ago

Description

vue-router@4 has no mode field. Now it has history field. and the abstract option is no longer available now. Instead, there is createMemoryHistory, which is for SSR. But it doesn't work with it, just an empty window after the build.

To Reproduce Steps to reproduce the behaviour:

  1. Just run wails build -p -f with Vue@3 + vue-router@4 (typescript)

Expected behaviour vue-router@4 works properly with wails

System Details

Name Value
Wails Version v1.16.3
Go Version go1.16.3
Platform darwin
Arch amd64
GO111MODULE (Not Set)
GCC 12.0.0
Npm 7.9.0
Node v14.15.5

Note: wails serve wroks as expected

milchinskiy commented 3 years ago

I was wrong, the problem is not with vue-router. Wails is unfortunately not friendly with dynamically imported components. close this issue.

leaanthony commented 3 years ago

Some technologies are just built for the browser unfortunately. Most people get around the issue. There's a number of guides on the website.