Music-Bot icon indicating copy to clipboard operation
Music-Bot copied to clipboard

Unexpected token(.)

Open XQuestCode opened this issue 4 years ago • 12 comments

Cant figure out the issue.. Screenshot_20210305-231145_DuckDuckGo

XQuestCode avatar Mar 05 '21 17:03 XQuestCode

create .replit and paste this there

run = "wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash && export NVM_DIR=\"$([ -z \"${XDG_CONFIG_HOME-}\" ] && printf %s \"${HOME}/.nvm\" || printf %s \"${XDG_CONFIG_HOME}/nvm\")\" && [ -s \"$NVM_DIR/nvm.sh\" ] && \\. \"$NVM_DIR/nvm.sh\" && nvm install 14 && nvm use 14 && yarn && node server"
language = "BASH"

this should upgrade the node version to 14. which will solve the issue @AdityaParmar101

A-cute-blob avatar Mar 05 '21 19:03 A-cute-blob

Bro thanks for quick reply, btw i get this.. Uploading Screenshot_20210306-194347_DuckDuckGo.jpg… Update: i still get the same error when i run index.js Hope this SS helps you.. Screenshot_20210306-195630_DuckDuckGo

XQuestCode avatar Mar 06 '21 14:03 XQuestCode

shouldn't happen works for me

A-cute-blob avatar Mar 08 '21 17:03 A-cute-blob

shouldn't happen works for me

XQuestCode avatar Mar 09 '21 07:03 XQuestCode

Bro, try hosting it yourself on repl.it IG it would be fixed soon...

XQuestCode avatar Mar 09 '21 15:03 XQuestCode

it will be fixed in the next update, thanks for your time.

LegendaryEmoji avatar Mar 09 '21 15:03 LegendaryEmoji

Uh i did that lol . @AdityaParmar101 But it worked

A-cute-blob avatar Mar 15 '21 08:03 A-cute-blob

Maybe, use NVM, a package manager for NodeJS, then repeat npm install. It should work. @AdityaParmar101

Considerated avatar Mar 21 '21 16:03 Considerated

create .replit and paste this there

run = "wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash && export NVM_DIR=\"$([ -z \"${XDG_CONFIG_HOME-}\" ] && printf %s \"${HOME}/.nvm\" || printf %s \"${XDG_CONFIG_HOME}/nvm\")\" && [ -s \"$NVM_DIR/nvm.sh\" ] && \\. \"$NVM_DIR/nvm.sh\" && nvm install 14 && nvm use 14 && yarn && node server"
language = "BASH"

this should upgrade the node version to 14. which will solve the issue @AdityaParmar101 if you use this command the node will get updated to 14 which is incompatible with this code at least that's what the console says

git

AmoghNS avatar Mar 30 '21 10:03 AmoghNS

it will be fixed in the next update, thanks for your time.

i am using a different package in new update + its coming soon

LegendaryEmoji avatar Apr 04 '21 20:04 LegendaryEmoji

when will you do it

MyMomIsSad00 avatar May 25 '21 20:05 MyMomIsSad00

same problem but i figured out! go to shell and type "npm un youtube-sr". After done uninstalling, Type "npm i youtube-sr". And you are done.

TaylorDuck72 avatar Sep 21 '21 12:09 TaylorDuck72