Skip to content

Error when importing nanoid function in pet model. "nanoid is not a function" #27

@RaminMammadzada

Description

@RaminMammadzada

Issue:

It gives the following error when importing nanoid method inside pet.js file.

 "errors": [
    {
      "message": "nanoid is not a function",

The exact location of import:

const nanoid = require('nanoid')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions