Open serafinomb opened 5 years ago
@serafinomb, To fix this error add convertToRaw
to commonjs rollup plugin section in rollup config.
plugins: [
commonjs({
namedExports: {
'node_modules/draft-js/lib/Draft.js': [
'convertToRaw',
// ...other exports
]
}
})
]
Similar way with kinda automating named exports list
import * as draftJs from 'draft-js';
commonjs({
namedExports: {
'draft-js': Object.keys(draftJs)
}
})
Hello, during a clean
npm install
I encountered the error reported below.These are the "draft-js" and "draft-convert" versions in my "package.json" file.
And the error encountered:
I updated the "draft-convert" version to "2.1.7" momentarily to fix the issue. It seems that the latest release has incompatibilities with the latest release (as of today) of "draft-js".
Please let me know if I do anything to help debug the issue, thank you.