Skip to content

Can't resolve native node.js modules onInit Payload #18

@bonniss

Description

@bonniss
{
  onInit: async (payload: Payload) => {
    if (process.env.NODE_ENV === 'development') {
      await seed(payload);
    }
  },
}

I import fs in seed and get error:

image

Have changed .npmrc node-linker=hoisted in both root and cms folders but not working.

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