#Dependency errors on build

3 messages · Page 1 of 1 (latest)

slim isle
#

I've been getting the following error when trying to build on Docker

const stringWidth = require('string-width');
^

Error [ERR_REQUIRE_ESM]: require() of ES Module /home/node/node_modules/string-width/index.js from /home/node/node_modules/cliui/build/index.cjs not supported.
Instead change the require of index.js in /home/node/node_modules/cliui/build/index.cjs to a dynamic import() which is available in all CommonJS modules.

I see string-width and cliui is a dependency of Payload, any ideo on this?

misty bolt
#

Hi @slim isle apologies for the delay here - do you still need help with this issue? were you able to solve it?

red flame
#

I'm curious as well. I'm running into the same error atm.