Deaftone / Orpheus

A music player. Frontend for Deaftone
GNU General Public License v3.0
35 stars 1 forks source link

Update dependencies? #13

Open audiomuze opened 1 year ago

audiomuze commented 1 year ago

image

# npm resolution error report

2023-01-17T17:34:26.712Z

While resolving: orpheus@0.0.2
Found: vite@4.0.4
node_modules/vite
  dev vite@"^4.0.2" from the root project

Could not resolve dependency:
peer vite@"^2.5.0 || ^3.0.0-0" from vite-plugin-vue-layouts@0.7.0
node_modules/vite-plugin-vue-layouts
  dev vite-plugin-vue-layouts@"^0.7.0" from the root project

Fix the upstream dependency conflict, or retry
this command with --force, or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

Raw JSON explanation object:

{
  "code": "ERESOLVE",
  "current": {
    "name": "vite",
    "version": "4.0.4",
    "whileInstalling": {
      "name": "orpheus",
      "version": "0.0.2",
      "path": "/home/x/git/Deaftone/Orpheus"
    },
    "location": "node_modules/vite",
    "isWorkspace": false,
    "dependents": [
      {
        "type": "dev",
        "name": "vite",
        "spec": "^4.0.2",
        "from": {
          "location": "/home/x/git/Deaftone/Orpheus"
        }
      }
    ]
  },
  "currentEdge": {
    "type": "dev",
    "name": "vite",
    "spec": "^4.0.2",
    "from": {
      "location": "/home/x/git/Deaftone/Orpheus"
    }
  },
  "edge": {
    "type": "peer",
    "name": "vite",
    "spec": "^2.5.0 || ^3.0.0-0",
    "error": "INVALID",
    "from": {
      "name": "vite-plugin-vue-layouts",
      "version": "0.7.0",
      "whileInstalling": {
        "name": "orpheus",
        "version": "0.0.2",
        "path": "/home/x/git/Deaftone/Orpheus"
      },
      "location": "node_modules/vite-plugin-vue-layouts",
      "isWorkspace": false,
      "dependents": [
        {
          "type": "dev",
          "name": "vite-plugin-vue-layouts",
          "spec": "^0.7.0",
          "from": {
            "location": "/home/x/git/Deaftone/Orpheus"
          }
        }
      ]
    }
  },
  "strictPeerDeps": false,
  "force": false
}
112RG commented 1 year ago

Ah sorry I forgot to mention this in the readme. But you must use pnpm to install the deps for Orpheus since the deps vite-plugin-vue-layouts hasn't been updated to allow vite v4 https://github.com/JohnCampionJr/vite-plugin-vue-layouts/issues/86

audiomuze commented 1 year ago
pnpm i
npm run dev

yields:

    Finished dev [unoptimized + debuginfo] target(s) in 1m 11s
[0] thread 'main' panicked at 'Unsupported platform!: UnsupportedPlatform', src/main.rs:28:33
[0] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[0] 🚀 A new version of Tauri CLI is available! [1.2.3]
[0] npx tauri dev exited with code 101
--> Sending SIGTERM to other processes..
[1] npm run devtools exited with code SIGTERM
112RG commented 1 year ago

Sorry should work now using

audiomuze commented 1 year ago

This from the client gui:

Error! Failed to connect to server. invalid value: string "", expected relative URL without a base
112RG commented 1 year ago

I am guessing you didn't put anything in the server url on startup the text in there is just a placeholder. You can use a release on the sidebar too instead of master since I break it often

audiomuze commented 1 year ago

I am guessing you didn't put anything in the server url on startup the text in there is just a placeholder

Didn't seem to be any ability to edit the placeholder string.