Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

Udacity-c2-restapi exercise issue #464

@abdelrazek-alaa

Description

@abdelrazek-alaa

I had an issue running the udacity-c2-restapi exercise to follow along with the lesson . and I had managed to workaround this and I thought this fix might be helpful for anyone facing the same issue.

Steps :
1- Delete package-lock.json ❌
2. Update all the npm dependencies to their latest version : here's how

Upon running the app you'll face this typescript error. 👇
error
The easiest way to fix would be by applying this change to FeedItem and User models at:
src\controllers\v0\feed\models\FeedItem.ts
src\controllers\v0\users\models\User.ts
delete

- export class User extends Model<User>
+ export class User extends Model
- export class FeedItem extends Model<FeedItem>
+ export class FeedItem extends Model

Hope this helps 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions