Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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