Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mihilranathunga opened this issue Oct 7, 2020 · 1 comment

Comments

@mihilranathunga
Copy link

mihilranathunga commented Oct 7, 2020

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.

@mihilranathunga
Copy link
Author

mihilranathunga commented Oct 7, 2020

This the actual error in the console.
griff-error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant