Git Product home page Git Product logo

wails-template-sveltekit's Issues

Can't get it to roll-up css or fonts

Even running the template as provided, my system cannot seem to render the css or font embedding. I just get the default fonts.

wails init -n wails4 -t https://github.com/plihelix/wails-template-sveltekit
cd wails4
wails dev

I get the app launching. But the fonts are not rendering. Could this be a missing plug-in or configuration missing? I've tried a bunch of things with no luck...

`Uncaught TypeError: Cannot read properties of undefined (reading 'main')` when calling golang functions in subpages.

Description

Calling golang functions in subpages such as localhost:34115/foo produces following error:

image

But if we are to goto /foo from the homepage (/) using an anchor tag as <a href="/foo">Goto foo</a> the function call works as expected but as soon as we refresh the page, it breaks again.

To Reproduce

$ wails init -n subpage_golang_call -t https://github.com/plihelix/wails-template-sveltekit
$ cd subpage_golang_call/
$ mkdir frontend/src/routes/foo
$ cp frontend/src/routes/{+page.svelte,foo}
$ wails dev

Now browse http://localhost:34115/foo, enter a name and click on Greet:

image

Using anchor tag from homepage

$ echo "<a href='/foo'>Goto /foo</a>" >> frontend/src/routes/+page.svelte

Browse the home page, scroll to bottom and click on Goto /foo

image

Scroll to bottom, enter a name and click on Greet:

image

This works as expected. But if we refresh the page and again enter a name and click on Greet:

image

Expected behaviour

image

System Details

$ wails doctor
Wails CLI v2.3.1

Scanning system - Please wait (this may take a long time)...Done.

# System

OS           | Arch Linux
Version      | Unknown
ID           | arch
Go Version   | go1.19.5
Platform     | linux
Architecture | amd64

# Wails

Version         | v2.3.1
Package Manager | pacman

# Dependencies

Dependency | Package Name | Status    | Version
*docker    | docker       | Installed | 1:20.10.23-1
gcc        | gcc          | Installed | 12.2.1-1
libgtk-3   | gtk3         | Installed | 1:3.24.36-1
libwebkit  | webkit2gtk   | Installed | 2.38.3-1
npm        | npm          | Installed | 8.19.2-1
pkg-config | pkgconf      | Installed | 1.8.0-1
* - Optional Dependency

# Diagnosis

Your system is ready for Wails development!

Additional message

I have tried this only on linux.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.