Skip to content

Error: 'default' is not exported by node_modules\lodash.isequal\index.js #359

@mihilranathunga

Description

@mihilranathunga

I get above build issue with when i added griffreact to my project.

Node Version : v12.18.4

Dependencies
dependencies

my rollup config
`import filesize from 'rollup-plugin-filesize';
import {terser} from 'rollup-plugin-terser';
import replace from '@rollup/plugin-replace';
import copy from 'rollup-plugin-copy';
import sourcemaps from 'rollup-plugin-sourcemaps';
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import builtins from 'rollup-plugin-node-builtins';
import nodeGlobals from 'rollup-plugin-node-globals';

// Static assets will vary depending on the application
const copyConfig = {
targets: [
{ src: 'dist/index.bundled.*', dest: 'dev' },
],
};

export default {
input: 'dist/index.js',
output: {
file: 'dist/index.bundled.js',
format: 'esm',
sourcemap: 'true',
},
onwarn(warning) {
if (warning.code !== 'THIS_IS_UNDEFINED') {
console.error((!) ${warning.message});
}
},
plugins: [
sourcemaps(),
copy(copyConfig),
replace({
'Reflect.decorate': 'undefined',
"process.env.NODE_ENV": JSON.stringify("development")
}),
nodeGlobals(),
builtins(),
resolve(),
commonjs({
include: /node_modules/,
// namedExports: {
// 'node_modules/react-sizeme/dist/react-sizeme.js': [ "SizeMe" ],
// },
// transformMixedEsModules: false,
}),
// terser({
// module: true,
// warnings: true,
// mangle: {
// properties: {
// regex: /^__/,
// },
// },
// }),
filesize({
showBrotliSize: true,
}),
],
};
`
Hope you could point out what needs to be done to fix this.

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