Yooooomi / your_spotify

Self hosted Spotify tracking dashboard
GNU General Public License v3.0
3.15k stars 128 forks source link

[Local install]: Unable to build frontend and unable to start backend #70

Closed samip5 closed 2 years ago

samip5 commented 2 years ago

Frontend:

yarn run v1.22.4
$ react-scripts build
Creating an optimized production build...
jsxBracketSameLine is deprecated.
Failed to compile.

src/components/ImplementedCharts/TimeListenedPer/TimeListenedPer.tsx
  Line 6:3:  'formatDateToString' is defined but never used  @typescript-eslint/no-unused-vars

src/scenes/ArtistStats/ArtistStats.tsx
  Line 12:8:  'ChartCard' is defined but never used  @typescript-eslint/no-unused-vars

Search for the keywords to learn more about each error.

error Command failed with exit code 1.

Backend:

import { dbLoop } from "../spotify/looper";
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at Object.compileFunction (node:vm:352:18)
    at wrapSafe (node:internal/modules/cjs/loader:1032:15)
    at Module._compile (node:internal/modules/cjs/loader:1067:27)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47

Versions: Node: v16.14.0 NPM: 8.3.1 YARN: 1.22.4

Git commit: 686fdf339b746b342637eff95dab4d839e87b15e

Yooooomi commented 2 years ago

Might be my bad on this (surely). I'll take a look at this this evening, sorry for the inconvenience

samip5 commented 2 years ago

I was able to start the backend. I was previously relying on the src/bin/www file, which after the re-write doesn't work anymore and you don't have the entry point documented in the local install instructions which seems to be lib/bin/www.

Yooooomi commented 2 years ago

The version I pushed should work fine now, sorry for the inconvenience