I am stuck in Mongoose

Tell us what’s happening:
I don’t understand why the code won’t run. Glitch keeps saying that SyntaxError: Identifier ‘Person’ has already been declared. Why won’t it work?
Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0.

Challenge: Create a Model

Link to the challenge:

Looks like you’re accidentally declaring it twice; once on line 18 and again on 32 :slight_smile:

I deleted line 32 and now it works! :smiley:

Now I have a new problem where the schema won’t succeed. In glitch I get a POST in the logs. Console.log doesn’t show any issues.

Never mind I just fixed it from author to age! Everything works perfect thank you for your help. :slight_smile:

1 Like

Awesome! Glad you were able to figure the rest out :slight_smile:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.