Skip to content

Howler.js integration #615

Answered by WolfAvenger
WolfAvenger asked this question in Q&A
Discussion options

You must be logged in to vote

Finally found the place where the issue was. So there is how I did fix this:

  1. electron.vite.config.ts: Added on line 19 assetsInclude: ["@renderer/assets/**/*.*"],
  2. in component .tsx file I wrote import soundfile from '@renderer/assets/audio/<file>.mp3 (Previously I created folder audio in rendedrer/src/assets folder and pasted all files there)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by WolfAvenger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant