plihelix / wails-template-sveltekit

Wails.io template using SvelteKit - trades SSR for golang within the app
https://github.com/plihelix/wails-sveltekit
40 stars 1 forks source link

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

Open precisionpete opened 1 year ago

precisionpete commented 1 year ago

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...

plihelix commented 1 year ago

I've not seen this issue before with wails so I'll need some more information to help you.

It's not easy to solve if it's not easy to replicate, I've seen some notifications from SkeletonUI that I haven't read and there's a possibility that they've changed something that results in a path error when looking for fonts.

If you haven't already, consider uninstalling and reinstalling wails and all dependencies. I'll go ahead and validate that it works with fresh installs on windows and linux and make any updates to the template necessary.

precisionpete commented 1 year ago

My system is Linux Mint 21.2 64 bit.


NAME="Linux Mint"
VERSION="21.2 (Victoria)"
ID=linuxmint
ID_LIKE="ubuntu debian"
PRETTY_NAME="Linux Mint 21.2"
VERSION_ID="21.2"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=victoria
UBUNTU_CODENAME=jammy

$ go version
go version go1.21.1 linux/amd64

I'm just using the template as it is here. I assume that means it's just Base.

The app seems to work. i.e. I put my name and get the expected response. But it's not rendering any fonts. The Wails app come up in what looks like Arial. But there are no font-family tags in the css. And the Browser version come up in Times New Roman again with no fonts.

The font name does not appear in the log either. So this also makes me think it is an issue with it being skipped on rollup. It is there in the src/lib/assets/fonts folder as you would expect.

The base template from wails/svelte does have fonts. But I want to try Sveltekit with native routing etc...

I have been playing with Wails/Svelte and like it. But Sveltekit would be better for my use case. I'm new to both and am really liking it.

I much appreciate your help.

A complete log is below...

$ wails init -n wailsfr -t https://github.com/plihelix/wails-template-sveltekit
Wails CLI v2.6.0

# Initialising Project 'wailsfr'
Project Name      | wailsfr                                    
Project Directory | /home/pcarroll/Development/Golang/wailsfr  
Template          | Wails-Template-SvelteKit                   
Template Source   | https://github.com/plihelix/wails-sveltekit
 WARNING  NOTE: You have created a project using a remote template. The Wails project takes no responsibility for 3rd party templates. Only use remote templates that you trust.

Initialised project 'wailsfr' in 631ms.

 ♥   If Wails is useful to you or your company, please consider sponsoring the project:
https://github.com/sponsors/leaanthony

$ cd wailsfr

.../wailsfr$ wails dev
Wails CLI v2.6.0

Executing: go mod tidy
  • Generating bindings: Done.
  • Installing frontend dependencies: Done.
  • Compiling frontend: Done.

> frontend@0.0.1 dev
> vite dev

Forced re-optimization of dependencies

  VITE v4.4.11  ready in 873 ms

Vite Server URL: http://localhost:5173/
  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
Running frontend DevWatcher command: 'npm run dev'
Building application for development...
  • Generating bindings: Done.
  • Compiling application: Done.
  • Packaging application: Done.

Using DevServer URL: http://localhost:34115
Using Frontend DevServer URL: http://localhost:5173/
Using reload debounce setting of 100 milliseconds
Watching (sub)/directory: /home/pcarroll/Development/Golang/wailsfr
INF | Serving assets from frontend DevServer URL: http://localhost:5173/
Overriding existing handler for signal 10. Set JSC_SIGNAL_FOR_GC if you want WebKit to use a different signal
DEB | [DevWebServer] Serving DevServer at http://localhost:34115
DEB | [AssetHandler] Handling request '/' (file='.')
DEB | [AssetHandler] File '.' not found, serving '/' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/'
DEB | [AssetHandler] Handling request '/src/lib/assets/images/logo-universal.png' (file='src/lib/assets/images/logo-universal.png')
DEB | [AssetHandler] File 'src/lib/assets/images/logo-universal.png' not found, serving '/src/lib/assets/images/logo-universal.png' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/src/lib/assets/images/logo-universal.png'
DEB | [AssetHandler] Handling request '/node_modules/@sveltejs/kit/src/runtime/client/start.js' (file='node_modules/@sveltejs/kit/src/runtime/client/start.js')
DEB | [AssetHandler] File 'node_modules/@sveltejs/kit/src/runtime/client/start.js' not found, serving '/node_modules/@sveltejs/kit/src/runtime/client/start.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/@sveltejs/kit/src/runtime/client/start.js'
DEB | [AssetHandler] Handling request '/@fs/home/pcarroll/Development/Golang/wailsfr/frontend/.svelte-kit/generated/client/app.js' (file='@fs/home/pcarroll/Development/Golang/wailsfr/frontend/.svelte-kit/generated/client/app.js')
DEB | [AssetHandler] File '@fs/home/pcarroll/Development/Golang/wailsfr/frontend/.svelte-kit/generated/client/app.js' not found, serving '/@fs/home/pcarroll/Development/Golang/wailsfr/frontend/.svelte-kit/generated/client/app.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/@fs/home/pcarroll/Development/Golang/wailsfr/frontend/.svelte-kit/generated/client/app.js'
DEB | [AssetHandler] Handling request '/node_modules/.vite/deps/esm-env.js' (file='node_modules/.vite/deps/esm-env.js')
DEB | [AssetHandler] File 'node_modules/.vite/deps/esm-env.js' not found, serving '/node_modules/.vite/deps/esm-env.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/.vite/deps/esm-env.js?v=2d801870'
DEB | [AssetHandler] Handling request '/node_modules/@sveltejs/kit/src/runtime/client/client.js' (file='node_modules/@sveltejs/kit/src/runtime/client/client.js')
DEB | [AssetHandler] File 'node_modules/@sveltejs/kit/src/runtime/client/client.js' not found, serving '/node_modules/@sveltejs/kit/src/runtime/client/client.js' by AssetHandler
DEB | [AssetHandler] Handling request '/node_modules/@sveltejs/kit/src/runtime/client/singletons.js' (file='node_modules/@sveltejs/kit/src/runtime/client/singletons.js')
DEB | [AssetHandler] File 'node_modules/@sveltejs/kit/src/runtime/client/singletons.js' not found, serving '/node_modules/@sveltejs/kit/src/runtime/client/singletons.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/@sveltejs/kit/src/runtime/client/client.js?v=72ad56c0'
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/@sveltejs/kit/src/runtime/client/singletons.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/.svelte-kit/generated/client/matchers.js' (file='.svelte-kit/generated/client/matchers.js')
DEB | [AssetHandler] File '.svelte-kit/generated/client/matchers.js' not found, serving '/.svelte-kit/generated/client/matchers.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/.svelte-kit/generated/client/matchers.js'
DEB | [AssetHandler] Handling request '/.svelte-kit/generated/root.svelte' (file='.svelte-kit/generated/root.svelte')
DEB | [AssetHandler] File '.svelte-kit/generated/root.svelte' not found, serving '/.svelte-kit/generated/root.svelte' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/.svelte-kit/generated/root.svelte'
DEB | [AssetHandler] Handling request '/@vite/client' (file='@vite/client')
DEB | [AssetHandler] File '@vite/client' not found, serving '/@vite/client' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/@vite/client'
DEB | [AssetHandler] Handling request '/node_modules/.vite/deps/svelte.js' (file='node_modules/.vite/deps/svelte.js')
DEB | [AssetHandler] File 'node_modules/.vite/deps/svelte.js' not found, serving '/node_modules/.vite/deps/svelte.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/.vite/deps/svelte.js?v=c99a4c13'
DEB | [AssetHandler] Handling request '/node_modules/@sveltejs/kit/src/utils/url.js' (file='node_modules/@sveltejs/kit/src/utils/url.js')
DEB | [AssetHandler] File 'node_modules/@sveltejs/kit/src/utils/url.js' not found, serving '/node_modules/@sveltejs/kit/src/utils/url.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/@sveltejs/kit/src/utils/url.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/node_modules/@sveltejs/kit/src/runtime/client/fetcher.js' (file='node_modules/@sveltejs/kit/src/runtime/client/fetcher.js')
DEB | [AssetHandler] File 'node_modules/@sveltejs/kit/src/runtime/client/fetcher.js' not found, serving '/node_modules/@sveltejs/kit/src/runtime/client/fetcher.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/@sveltejs/kit/src/runtime/client/fetcher.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/node_modules/@sveltejs/kit/src/runtime/client/parse.js' (file='node_modules/@sveltejs/kit/src/runtime/client/parse.js')
DEB | [AssetHandler] File 'node_modules/@sveltejs/kit/src/runtime/client/parse.js' not found, serving '/node_modules/@sveltejs/kit/src/runtime/client/parse.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/@sveltejs/kit/src/runtime/client/parse.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/node_modules/@sveltejs/kit/src/runtime/client/session-storage.js' (file='node_modules/@sveltejs/kit/src/runtime/client/session-storage.js')
DEB | [AssetHandler] File 'node_modules/@sveltejs/kit/src/runtime/client/session-storage.js' not found, serving '/node_modules/@sveltejs/kit/src/runtime/client/session-storage.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/@sveltejs/kit/src/runtime/client/session-storage.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/node_modules/@sveltejs/kit/src/runtime/client/utils.js' (file='node_modules/@sveltejs/kit/src/runtime/client/utils.js')
DEB | [AssetHandler] File 'node_modules/@sveltejs/kit/src/runtime/client/utils.js' not found, serving '/node_modules/@sveltejs/kit/src/runtime/client/utils.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/@sveltejs/kit/src/runtime/client/utils.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/@id/__x00____sveltekit/paths' (file='@id/__x00____sveltekit/paths')
DEB | [AssetHandler] File '@id/__x00____sveltekit/paths' not found, serving '/@id/__x00____sveltekit/paths' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/@id/__x00____sveltekit/paths'
DEB | [AssetHandler] Handling request '/node_modules/.vite/deps/devalue.js' (file='node_modules/.vite/deps/devalue.js')
DEB | [AssetHandler] File 'node_modules/.vite/deps/devalue.js' not found, serving '/node_modules/.vite/deps/devalue.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/.vite/deps/devalue.js?v=e314d1f6'
DEB | [AssetHandler] Handling request '/node_modules/@sveltejs/kit/src/utils/array.js' (file='node_modules/@sveltejs/kit/src/utils/array.js')
DEB | [AssetHandler] File 'node_modules/@sveltejs/kit/src/utils/array.js' not found, serving '/node_modules/@sveltejs/kit/src/utils/array.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/@sveltejs/kit/src/utils/array.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/node_modules/@sveltejs/kit/src/utils/exports.js' (file='node_modules/@sveltejs/kit/src/utils/exports.js')
DEB | [AssetHandler] File 'node_modules/@sveltejs/kit/src/utils/exports.js' not found, serving '/node_modules/@sveltejs/kit/src/utils/exports.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/@sveltejs/kit/src/utils/exports.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/node_modules/@sveltejs/kit/src/utils/promises.js' (file='node_modules/@sveltejs/kit/src/utils/promises.js')
DEB | [AssetHandler] File 'node_modules/@sveltejs/kit/src/utils/promises.js' not found, serving '/node_modules/@sveltejs/kit/src/utils/promises.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/@sveltejs/kit/src/utils/promises.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/node_modules/@sveltejs/kit/src/runtime/control.js' (file='node_modules/@sveltejs/kit/src/runtime/control.js')
DEB | [AssetHandler] File 'node_modules/@sveltejs/kit/src/runtime/control.js' not found, serving '/node_modules/@sveltejs/kit/src/runtime/control.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/@sveltejs/kit/src/runtime/control.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/node_modules/@sveltejs/kit/src/runtime/shared.js' (file='node_modules/@sveltejs/kit/src/runtime/shared.js')
DEB | [AssetHandler] File 'node_modules/@sveltejs/kit/src/runtime/shared.js' not found, serving '/node_modules/@sveltejs/kit/src/runtime/shared.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/@sveltejs/kit/src/runtime/shared.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/node_modules/@sveltejs/kit/src/runtime/client/constants.js' (file='node_modules/@sveltejs/kit/src/runtime/client/constants.js')
DEB | [AssetHandler] File 'node_modules/@sveltejs/kit/src/runtime/client/constants.js' not found, serving '/node_modules/@sveltejs/kit/src/runtime/client/constants.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/@sveltejs/kit/src/runtime/client/constants.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/node_modules/.vite/deps/svelte_store.js' (file='node_modules/.vite/deps/svelte_store.js')
DEB | [AssetHandler] File 'node_modules/.vite/deps/svelte_store.js' not found, serving '/node_modules/.vite/deps/svelte_store.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/.vite/deps/svelte_store.js?v=c99a4c13'
DEB | [AssetHandler] Handling request '/node_modules/.vite/deps/svelte_internal.js' (file='node_modules/.vite/deps/svelte_internal.js')
DEB | [AssetHandler] File 'node_modules/.vite/deps/svelte_internal.js' not found, serving '/node_modules/.vite/deps/svelte_internal.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/.vite/deps/svelte_internal.js?v=c99a4c13'
DEB | [AssetHandler] Handling request '/node_modules/@sveltejs/kit/src/runtime/app/environment.js' (file='node_modules/@sveltejs/kit/src/runtime/app/environment.js')
DEB | [AssetHandler] File 'node_modules/@sveltejs/kit/src/runtime/app/environment.js' not found, serving '/node_modules/@sveltejs/kit/src/runtime/app/environment.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/@sveltejs/kit/src/runtime/app/environment.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/node_modules/svelte-hmr/runtime/hot-api-esm.js' (file='node_modules/svelte-hmr/runtime/hot-api-esm.js')
DEB | [AssetHandler] File 'node_modules/svelte-hmr/runtime/hot-api-esm.js' not found, serving '/node_modules/svelte-hmr/runtime/hot-api-esm.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/svelte-hmr/runtime/hot-api-esm.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/node_modules/svelte-hmr/runtime/proxy-adapter-dom.js' (file='node_modules/svelte-hmr/runtime/proxy-adapter-dom.js')
DEB | [AssetHandler] File 'node_modules/svelte-hmr/runtime/proxy-adapter-dom.js' not found, serving '/node_modules/svelte-hmr/runtime/proxy-adapter-dom.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/svelte-hmr/runtime/proxy-adapter-dom.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/node_modules/@sveltejs/kit/src/utils/routing.js' (file='node_modules/@sveltejs/kit/src/utils/routing.js')
DEB | [AssetHandler] File 'node_modules/@sveltejs/kit/src/utils/routing.js' not found, serving '/node_modules/@sveltejs/kit/src/utils/routing.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/@sveltejs/kit/src/utils/routing.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/node_modules/@sveltejs/kit/src/runtime/hash.js' (file='node_modules/@sveltejs/kit/src/runtime/hash.js')
DEB | [AssetHandler] File 'node_modules/@sveltejs/kit/src/runtime/hash.js' not found, serving '/node_modules/@sveltejs/kit/src/runtime/hash.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/@sveltejs/kit/src/runtime/hash.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/@id/__x00____sveltekit/environment' (file='@id/__x00____sveltekit/environment')
DEB | [AssetHandler] File '@id/__x00____sveltekit/environment' not found, serving '/@id/__x00____sveltekit/environment' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/@id/__x00____sveltekit/environment'
DEB | [AssetHandler] Handling request '/node_modules/svelte-hmr/runtime/index.js' (file='node_modules/svelte-hmr/runtime/index.js')
DEB | [AssetHandler] File 'node_modules/svelte-hmr/runtime/index.js' not found, serving '/node_modules/svelte-hmr/runtime/index.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/svelte-hmr/runtime/index.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/node_modules/svelte-hmr/runtime/overlay.js' (file='node_modules/svelte-hmr/runtime/overlay.js')
DEB | [AssetHandler] File 'node_modules/svelte-hmr/runtime/overlay.js' not found, serving '/node_modules/svelte-hmr/runtime/overlay.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/svelte-hmr/runtime/overlay.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/node_modules/svelte-hmr/runtime/hot-api.js' (file='node_modules/svelte-hmr/runtime/hot-api.js')
DEB | [AssetHandler] File 'node_modules/svelte-hmr/runtime/hot-api.js' not found, serving '/node_modules/svelte-hmr/runtime/hot-api.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/svelte-hmr/runtime/hot-api.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/node_modules/vite/dist/client/env.mjs' (file='node_modules/vite/dist/client/env.mjs')
DEB | [AssetHandler] File 'node_modules/vite/dist/client/env.mjs' not found, serving '/node_modules/vite/dist/client/env.mjs' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/vite/dist/client/env.mjs'
DEB | [AssetHandler] Handling request '/node_modules/svelte-hmr/runtime/proxy.js' (file='node_modules/svelte-hmr/runtime/proxy.js')
DEB | [AssetHandler] File 'node_modules/svelte-hmr/runtime/proxy.js' not found, serving '/node_modules/svelte-hmr/runtime/proxy.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/svelte-hmr/runtime/proxy.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/node_modules/svelte-hmr/runtime/svelte-hooks.js' (file='node_modules/svelte-hmr/runtime/svelte-hooks.js')
DEB | [AssetHandler] File 'node_modules/svelte-hmr/runtime/svelte-hooks.js' not found, serving '/node_modules/svelte-hmr/runtime/svelte-hooks.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/svelte-hmr/runtime/svelte-hooks.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/node_modules/.vite/deps/chunk-RVLVW3YK.js' (file='node_modules/.vite/deps/chunk-RVLVW3YK.js')
DEB | [AssetHandler] File 'node_modules/.vite/deps/chunk-RVLVW3YK.js' not found, serving '/node_modules/.vite/deps/chunk-RVLVW3YK.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/.vite/deps/chunk-RVLVW3YK.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/node_modules/.vite/deps/chunk-E6ZP6LG5.js' (file='node_modules/.vite/deps/chunk-E6ZP6LG5.js')
DEB | [AssetHandler] File 'node_modules/.vite/deps/chunk-E6ZP6LG5.js' not found, serving '/node_modules/.vite/deps/chunk-E6ZP6LG5.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/.vite/deps/chunk-E6ZP6LG5.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/.svelte-kit/generated/client/nodes/0.js' (file='.svelte-kit/generated/client/nodes/0.js')
DEB | [AssetHandler] File '.svelte-kit/generated/client/nodes/0.js' not found, serving '/.svelte-kit/generated/client/nodes/0.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/.svelte-kit/generated/client/nodes/0.js'
DEB | [AssetHandler] Handling request '/.svelte-kit/generated/client/nodes/1.js' (file='.svelte-kit/generated/client/nodes/1.js')
DEB | [AssetHandler] File '.svelte-kit/generated/client/nodes/1.js' not found, serving '/.svelte-kit/generated/client/nodes/1.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/.svelte-kit/generated/client/nodes/1.js'
DEB | [AssetHandler] Handling request '/.svelte-kit/generated/client/nodes/2.js' (file='.svelte-kit/generated/client/nodes/2.js')
DEB | [AssetHandler] File '.svelte-kit/generated/client/nodes/2.js' not found, serving '/.svelte-kit/generated/client/nodes/2.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/.svelte-kit/generated/client/nodes/2.js'
DEB | [AssetHandler] Handling request '/node_modules/@sveltejs/kit/src/runtime/components/layout.svelte' (file='node_modules/@sveltejs/kit/src/runtime/components/layout.svelte')
DEB | [AssetHandler] File 'node_modules/@sveltejs/kit/src/runtime/components/layout.svelte' not found, serving '/node_modules/@sveltejs/kit/src/runtime/components/layout.svelte' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/@sveltejs/kit/src/runtime/components/layout.svelte?v=72ad56c0'
DEB | [AssetHandler] Handling request '/node_modules/@sveltejs/kit/src/runtime/components/error.svelte' (file='node_modules/@sveltejs/kit/src/runtime/components/error.svelte')
DEB | [AssetHandler] File 'node_modules/@sveltejs/kit/src/runtime/components/error.svelte' not found, serving '/node_modules/@sveltejs/kit/src/runtime/components/error.svelte' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/@sveltejs/kit/src/runtime/components/error.svelte?v=72ad56c0'
DEB | [AssetHandler] Handling request '/src/routes/+page.svelte' (file='src/routes/+page.svelte')
DEB | [AssetHandler] File 'src/routes/+page.svelte' not found, serving '/src/routes/+page.svelte' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/src/routes/+page.svelte'
DEB | [AssetHandler] Handling request '/node_modules/@sveltejs/kit/src/runtime/app/stores.js' (file='node_modules/@sveltejs/kit/src/runtime/app/stores.js')
DEB | [AssetHandler] File 'node_modules/@sveltejs/kit/src/runtime/app/stores.js' not found, serving '/node_modules/@sveltejs/kit/src/runtime/app/stores.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/node_modules/@sveltejs/kit/src/runtime/app/stores.js?v=72ad56c0'
DEB | [AssetHandler] Handling request '/src/lib/assets/images/logo-universal.png' (file='src/lib/assets/images/logo-universal.png')
DEB | [AssetHandler] File 'src/lib/assets/images/logo-universal.png' not found, serving '/src/lib/assets/images/logo-universal.png' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/src/lib/assets/images/logo-universal.png?import'
DEB | [AssetHandler] Handling request '/src/lib/wailsjs/go/main/App.js' (file='src/lib/wailsjs/go/main/App.js')
DEB | [AssetHandler] File 'src/lib/wailsjs/go/main/App.js' not found, serving '/src/lib/wailsjs/go/main/App.js' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/src/lib/wailsjs/go/main/App.js'
DEB | [AssetHandler] Handling request '/src/routes/+page.svelte' (file='src/routes/+page.svelte')
DEB | [AssetHandler] File 'src/routes/+page.svelte' not found, serving '/src/routes/+page.svelte' by AssetHandler
DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/src/routes/+page.svelte?svelte&type=style&lang.css'

To develop in the browser and call your bound Go methods from Javascript, navigate to: http://localhost:34115

Screenshot from 2023-10-05 21-44-12

To develop in the browser and call your bound Go methods from Javascript, navigate to: http://localhost:34115 Screenshot from 2023-10-05 21-45-04

For build...

Wails CLI v2.6.0

# Build Options

Platform(s)        | linux/amd64                                       
Compiler           | /usr/local/go/bin/go                              
Skip Bindings      | false                                             
Build Mode         | production                                        
Devtools           | false                                             
Frontend Directory | /home/pcarroll/Development/Golang/wailsfr/frontend
Obfuscated         | false                                             
Skip Frontend      | false                                             
Compress           | false                                             
Package            | true                                              
Clean Bin Dir      | false                                             
LDFlags            |                                                   
Tags               | []                                                
Race Detector      | false                                             

# Building target: linux/amd64

  • Generating bindings: Done.
  • Installing frontend dependencies: Done.
  • Compiling frontend: Done.
  • Compiling application: Done.
  • Packaging application: Done.
Built '/home/pcarroll/Development/Golang/wailsfr/build/bin/wailsfr' in 3.397s.

 ♥   If Wails is useful to you or your company, please consider sponsoring the project:
https://github.com/sponsors/leaanthony

...wailsfr$ build/bin/wailsfr 
Overriding existing handler for signal 10. Set JSC_SIGNAL_FOR_GC if you want WebKit to use a different signal

Screenshot from 2023-10-05 21-42-11

precisionpete commented 1 year ago

Here is a hint...

If I use this template, the node_modules folder gets installed in the wrong location. In this case it is one level above the project folder?

In any other wails templates I have tried, It gets installed in the frontend folder and everything works.

If I delete the incorrect node_modules folder, cd to the frontend folder, and do npm install, it works.

I was previously using pnpm with the same problem. I went back to npm to try to solve the problem. Not sure if this makes a difference if I nuke the folder and reinstall...

plihelix commented 1 year ago

Understood,

The issue is a pathing problem that can be solved by relocating the node_modules directory. I will get this fixed, thank you.