Syntax error in importing memoize from Loadash
ihuzaifashoukat opened this issue · 0 comments
ihuzaifashoukat commented
/node_modules/@imgly/background-removal/dist/index.mjs:495
import { memoize } from "lodash";
^^^^^^^
SyntaxError: Named export 'memoize' not found. The requested module 'lodash' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'lodash';
const { memoize } = pkg;