Closed romebell closed 3 years ago
Unable to convert buffer from fs.readFileSync
to a JSON object using JSON.parse
:
@nitishdayal Do you have a dinosaurs.json
file?
I do, but I just looked at it and it's empty. :) So. Simple enough error. I assumed it was already populated with some data; guess I missed the step where we seeded it. Thanks!
Having some issues trying to get the img url for cryptids to post. Its breaking my code so I commented it out. Any ideas?
<form action="/cryptids" method="POST">
<label for="cryptidName">Name</label>
<input id="cryptidName" type="text" name="name">
<!-- <label for="imgURL">Image URL</label>
<input id="imgURL" type="text" name="imgURL"> -->
<input type="submit">
</form>
This came up once i started my crypt controller
This came up once i started my crypt controller
It looks like "expresss" has one to many 's' there! Try that error out?
@fmuwanguzi Did you get this working?
Double check your spelling of express
inside your index.js
file
I fixed that typo and this came up
@canourrea23 check your " in your inputs
@canourrea23 check your " in your inputs
Sorry I was able to get it fixed and I deleted it. Thanks!!
Admin 👀 - [admin] is looking into it 👍 - [admin] Answer issue. Looks good. Code works.
Students 🚀 - [student] I get it! 😕 - [student] Still confused 😄 - [student] A simple error 🎉 - [student] My code now works
Admin/Students ❤️ - [student/admin] Love the topic or code snippet 👎 - [student/admin] Code didn't work