You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 1, 2020. It is now read-only.
Trying to ionic serve my code (using beta.12 branch for app-base and tabs app template) I get this error:
[01:54:08] bundle failed: Error: Module app/node_modules/angularfire2/node_modules/firebase/firebase-node.js does not export auth (imported by app/node_modules/angularfire2/auth/firebase_sdk_auth_backend.js)
It appears to be an error in the rollup bundling process (ngc completes ok).
Not sure if it's a problem with the integration of the bundle of angularfire2 with rollup or some config issue for rollup...
removing all imports of angularfire2 (and code that uses it) and the everything is fine.
Thanks, Shlomi.
The text was updated successfully, but these errors were encountered:
Ok, to workaround this I had to provide a custom config for rollup and skipfirebase
const rollupNG2 = require('@ionic/app-scripts/dist/plugins/rollupNG2').rollupNG2;
const nodeResolve = require('rollup-plugin-node-resolve');
// https://github.com/rollup/rollup/wiki/JavaScript-API
module.exports = {
/**
* entry: The bundle's starting point. This file will
* be included, along with the minimum necessary code
* from its dependencies
*/
entry: '.tmp/app/main.prod.js',
/**
* sourceMap: If true, a separate sourcemap file will
* be created.
*/
sourceMap: true,
/**
* format: The format of the generated bundle
*/
format: 'iife',
/**
* dest: the output filename for the bundle in the buildDir
*/
dest: 'main.es6.js',
/**
* plugins: Array of plugin objects, or a single plugin object.
* See https://github.com/rollup/rollup/wiki/Plugins for more info.
*/
plugins: [
rollupNG2(),
nodeResolve({
module: true,
jsnext: true,
main: true,
browser: true,
extensions: ['.js'],
skip: [ 'firebase' ]
})
]
};
Hi,
Trying to
ionic serve
my code (using beta.12 branch for app-base and tabs app template) I get this error:It appears to be an error in the rollup bundling process (ngc completes ok).
Not sure if it's a problem with the integration of the bundle of
angularfire2
with rollup or some config issue for rollup...removing all imports of
angularfire2
(and code that uses it) and the everything is fine.Thanks, Shlomi.
The text was updated successfully, but these errors were encountered: