clone-deep icon indicating copy to clipboard operation
clone-deep copied to clipboard

Vite/rollup Illegal reassignment of import

Open adamnyberg opened this issue 2 years ago • 0 comments

I'm getting the following error, is there a known way of working around it?

Illegal reassignment of import "commonjsRequire" in "../../node_modules/clone-deep/utils.js".
file: node_modules/clone-deep/utils.js:10:0
 8: var fn = require;
 9: 
10: require = utils;
    ^
11: require('is-plain-object', 'isObject');
12: require('shallow-clone', 'clone');

adamnyberg avatar Nov 08 '23 17:11 adamnyberg