Same issue here! Any workarounds until a fix is out? Simply adding it manually through a custom rollup file (like with other external libraries) does not work. When I tried I received the error “duplicate export…”
It appears that this error only occurs when you have a custom rollup.config.js file with some include & namedExports specified for the commonJS plugin. I had to adapt my rollup config in order to get rid of the error.
I had to change that so that the “include” array only consists of "node_modules/" like so:
…
commonjs({
include: [
'node_modules/’
],
namedExports: {
‘node_modules/firebase/firebase.js’: [‘initializeApp’, ‘auth’, ‘database’],
‘node_modules/angularfire2/node_modules/firebase/firebase-browser.js’: [‘initializeApp’, ‘auth’, ‘database’],
‘node_modules/ng2-charts/ng2-charts.js’: [‘ChartsModule’]
}
}),
…
Sorry for copy-pasting the code. Didn’t figure out how to include coding.
I also tried that before switching to node_modules/** but it yielded the same error. For me including the entire node_modules directory is the only way it works for now.