tutaru99 / Internet-Radio-Player-Vue

Internet Radio Player with an Audio Visualizer made using VueJS, Vuetify & Howler.JS frameworks. The Player has a bunch of radio stations. Check out the demo below.
https://tutaru99.github.io/Internet-Radio-Player-Vue
12 stars 4 forks source link

npm run build error #2

Closed nowehity97 closed 1 year ago

nowehity97 commented 1 year ago

how fix to Failed to compile with 2 errors 17:57:57 error in C:/Users/ja/Desktop/Internet-Radio-Player-Vue-main/src/store/index.ts

ERROR in C:/Users/ja/Desktop/Internet-Radio-Player-Vue-main/src/store/index.ts(21,7): 21:7 Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{}'. 19 | }, 20 | saveLikedStation(state, station) {

21 | state.likedStations[station.id] = station; | ^ 22 | }, 23 | removeLikedStation(state, station) { 24 | delete state.likedStations[station.id];

error in C:/Users/ja/Desktop/Internet-Radio-Player-Vue-main/src/store/index.ts

ERROR in C:/Users/ja/Desktop/Internet-Radio-Player-Vue-main/src/store/index.ts(24,14): 24:14 Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{}'. 22 | }, 23 | removeLikedStation(state, station) {

24 | delete state.likedStations[station.id]; | ^ 25 | } 26 | }, 27 | actions: {},

ERROR Build failed with errors.

tutaru99 commented 1 year ago

Hey nowehity97, Pull new changes, errors should be fixed now. Let me know if you encounter any more.

~Cheers.

nowehity97 commented 1 year ago

thank you, now it works properly