#code doesn't work when deployed on Netlify

10 messages · Page 1 of 1 (latest)

random plover
#

Hi all, my code works fine in VS code and Scrimba but doesn't work when I deploy it on Netlify. There seems to be an issue linking the index.js file. I coded on Scrimba and uploaded everything to GitHub and deployed from there. This hasn't happened before to the other projects deployed using the same method. Thank you for taking a look!!

app: https://main--boredbot-rc.netlify.app/
scrim: https://scrimba.com/scrim/co9d442c38368db43e48562b1?a=4334.0.2.L24_14

Scrimba

Learn to code with interactive scrims. Our courses and tutorials will teach you React, Vue, Angular, JavaScript, HTML, CSS, and more. Scrimba is the fun and easy way to learn web development.

shy otter
pastel jasper
#

It looks like this could be a Netlify deployment of your GitHub repo of a downloaded Scrimba zip file. Try following these steps to repair the deployment: #general-chat message

Or, you could remove the package.json file from the GitHub repository, then deploy a new Netlify instance (specifically, delete the current instance and deploy a new instance).

rose stirrup
#

@random plover share your github

random plover
rose stirrup
#

remove build cmd

#

@random plover

random plover
#

I fixed it!! Turns out to be another issue - boredapi's URL needs to start with https instead of http. When I copied the URL from boredAPI documentation it is only http. not sure why. I also deleted package.json file as @pastel jasper suggested, which may helped. working app here: https://main--boredbot-rc.netlify.app/