I am working on the Jammming project and find myself stuck. I am getting the following error on the Spotify.js file:
Module parse failed: Invalid regular expression: /access_token[^&]*)/: Unmatched ‘)’ (12:57)
File was processed with these loaders:
Failed to compile.
I have gone back to step 79 where this expression is created. I copy/pasted the hint code to make sure I didn’t have a typo. Also, looked at the video where this is done. But I still can’t figure out what I’m doing wrong. My code is as follows:
const accessTokenMatch = window.location.href.match(/access_token=([^&]*)/);
const expiresInMatch = window.location.href.match(/expires_in=([^&]*)/);
When I search the error on Google it looks like I might be missing some files or a library of some sort? But I haven’t had any problems following the lessons up to this point so it doesn’t feel right to me. Any suggestions on where I might look to get this resolved? Thanks in advance for your help!