Thanks for the reply! I’ve tried to import the js files like this but I’m sure I’m doing something wrong.
I create html file in src folder then I run cd Decentralized-Spotify/src
run yarn
Add all js files to html file like this:
<head>
<!--Head Content-->
<title>AUNS Streaming</title>
<!-- Required meta tags -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<!-- Scripts -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/web3.min.js"></script>
<script src="https://unpkg.com/moralis/dist/moralis.js"></script>
<script src="src/setupTests.js"></script>
<script src="src/reportwebVitals.js"></script>
<script src="src/index.js"></script>
<script src="src/App.js"></script>
<script src="src/Home.js"></script>
<script src="src/Album.js"></script>
<script src="src/hooks/useIPFS.js"></script>
<script src="src/hooks/useAudio.js"></script>
<script src="src/hooks/useAlbum.js"></script>
<script src="src/helpers/albumLists.js"></script>
<script src="src/components/AudioPlayer.js"></script>
</body>
</html>
Am i making the mistake with cd-in only the src folder? I was getting an issue with the compressed file size being too big when I tried the whole folder.
Or am I simply messing up the html file?