wails icon indicating copy to clipboard operation
wails copied to clipboard

Error when running on localhost

Open LoryPelli opened this issue 1 year ago • 4 comments

Description

runtime-core.esm-bundler.js:2957 Uncaught TypeError: Cannot read properties of null (reading 'isCE') it works on 127.0.0.1 or wails.localhost but in just localhost doesn't

To Reproduce

Go to http://localhost:34115

Expected behaviour

It was working on 2.8.0

Screenshots

No response

Attempted Fixes

Change localhost to wails.localhost in CLI output please, it looks better, it's something "special" for your framework

System Details

Wails Doctor



# Wails
Version | v2.8.2

# System
┌────────────────────────────────────────────────────────────────────────┐
| OS           | Windows 10 Home                                         |
| Version      | 2009 (Build: 19045)                                     |
| ID           | 22H2                                                    |
| Go Version   | go1.22.2                                                |
| Platform     | windows                                                 |
| Architecture | amd64                                                   |
| CPU          | AMD Ryzen 5 2600 Six-Core Processor                     |
| GPU          | NVIDIA GeForce GTX 1050 (NVIDIA) - Driver: 31.0.15.5244 |
| Memory       | 8GB                                                     |
└────────────────────────────────────────────────────────────────────────┘

# Dependencies
┌───────────────────────────────────────────────────────┐
| Dependency | Package Name | Status    | Version       |
| WebView2   | N/A          | Installed | 124.0.2478.80 |
| Nodejs     | N/A          | Installed | 21.5.0        |
| npm        | N/A          | Installed | 10.6.0        |
| *upx       | N/A          | Available |               |
| *nsis      | N/A          | Available |               |
└─────────────── * - Optional Dependency ───────────────┘

# Diagnosis
Optional package(s) installation details:
  - upx : Available at https://upx.github.io/
  - nsis : More info at https://wails.io/docs/guides/windows-installer/

 SUCCESS  Your system is ready for Wails development!

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

Additional context

No response

LoryPelli avatar May 10 '24 20:05 LoryPelli

Is the issue related to Vue? https://stackoverflow.com/questions/71063992/when-importing-self-made-vue-3-library-into-vue-3-project-uncaught-typeerror

leaanthony avatar May 17 '24 22:05 leaanthony

Is the issue related to Vue? https://stackoverflow.com/questions/71063992/when-importing-self-made-vue-3-library-into-vue-3-project-uncaught-typeerror

It worked with previous versions, also, I only have custom components

LoryPelli avatar May 18 '24 04:05 LoryPelli

Do you have vue install multiple times? If so, make it a devDependency especially if this is monorepo/contains component library(s).

If vue is a dependency and not a devDependency it will try to get bundled rather than compiling your code.

mateothegreat avatar May 18 '24 06:05 mateothegreat

Do you have vue install multiple times? If so, make it a devDependency especially if this is monorepo/contains component library(s).

If vue is a dependency and not a devDependency it will try to get bundled rather than compiling your code.

Making vue a devDependency didn't fix the issue, it was working on 2.8.0, it should be a wails issue then...

LoryPelli avatar May 20 '24 20:05 LoryPelli