remix-server icon indicating copy to clipboard operation
remix-server copied to clipboard

Can't resolve native node.js modules onInit Payload

Open bonniss opened this issue 2 years ago • 0 comments

{
  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.

bonniss avatar Aug 12 '23 07:08 bonniss