taker93 / radiosim

BOS Radio Simulator
https://funk.nur-kurz.de
MIT License
9 stars 1 forks source link

Using npm fails running dev #1

Open suhrmann opened 2 days ago

suhrmann commented 2 days ago

What I did:

$ git clone https://github.com/taker93/radiosim.git && cd radiosim
$ npm i
$ npm run dev
> Pre-transform error: Failed to resolve import "pinia" from "stores/useAppSettingsStore.ts". Does the file exist? 

----

$ node --version
> v22.5.1 
  on MacOS 15.1 with Apple Silicon

Workaround:

yarn works for me like charm.

taker93 commented 2 days ago

pnpm works like charm too. I first setup the project with npm and when i encountered the error I used pnpm to solve it.

There is a known issue with pinia and the latest nuxt version: https://github.com/vuejs/pinia/issues/2822

Intevel commented 2 days ago

I would recommend switching to Yarn, or even better, PNPM by default—there are many advantages, and performance is one of them.