#Visual Studio Start up
1 messages · Page 1 of 1 (latest)
Why are you using visual studio for js
That’s the only script writing software I know
That and Repl.it
Why are you even using an ide for js tho
That’s not what ides are for
At least use vscode lol. Even that is terrible
If you can avoid Microsoft you should
I don’t know, I’m quite new to coding, I’m just trying to learn
What should I do to start it?
? why
and no, I disagree, microsoft's IDEs are quite ok
to OP: you are developing a node.js app, right?
then select the node index.js option.
alternatively you could open a command line in the folder you have the project and then write the node index.js command in there
I tried that but it kept telling me to choose a Start up item
I’ll try again
oh. I haven't used visual studio for JS myself, I'm always using VSC, so I'm kinda guessing
yea i'm stuck at the moment and don't know what to do
They spy on you and there integration with git is awful. Also vscode takes so long to compile. Visual studio should only really be used for c# apps.
Reinstall npm
Like in the project
Delete package lock and then reinstall
If that doesn’t work idk
how do i do that?
it doesn't work, well i don't know what to do then 😅
i'm going to try and move everything to Repl.it and see if that might work, but tbh i don't know
What are you coding?
I'm trying to make a simple ticket bot for my server
but as you can see it isn't going as planned 😅
I think instead of worrying about the startup option thing, you could just open a console and run the node command in that
it doesn't help fix the problem but it does help you keep going with creating your bot
also I haven't used visual studio before since I use visual studio code as it feels more user friendly to me
Vim+ users don’t have this issue
Replit isn’t very good for discord bots
what does your package.json look like?
A lot of replit servers get ip banned
it might be missing the scripts field
By discord
@silver lagoon If you're just going to complain literally do it anywhere but here people are trying to be helpful and you're talking to yourself
Make sure scripts in package.json looks like this json "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "node ." }, index.js should be the main file and in the same directory
I just helped. I am giving information about replit because knowing that their servers get constantly 429’ed is important. Also I have them the code to fix their problem.
do you want me to send you a screenshot?
13/21~ messages from you have been complaining.
In general for code support it's best to paste it somewhere like https://hst.sh
Even if the file is small it's a good habit to get into when your files become.. not small.
Does your package.json look like what I sent. From the error it seems like you don’t have a start command
my package.json file looks like this
ok so yeah you're missing the start script
One sec
so i should paste that ^^ in the file?
Add "start": "node ." to scripts section
well really you should just add the start script from that since you have other scripts already in place
The other part is necessary too but they already have it
Well not necessary but
yeah that's what I meant by saying they have the other scripts already in their file
It won’t tell you the error without it
Yeah I just don’t want op to replace all the scripts with start
Could be confusing
should i replace the whole marked section?
No
Just Add "start": "node ." to scripts section
Also make sure to put a comma after the script before
ahh so like that
No
Look at this
Delete all of scripts and just replace it with that
alright i think i got it
Ok