Skip to content

Getting started with AngularFire and Universal needs to be updated #2105

@tariva

Description

@tariva

When setting up universal following
https://github.com/angular/angularfire2/blob/master/docs/universal/getting-started.md

module.exports = {
entry: { server: './server.ts' },
resolve: { extensions: ['.js', '.ts'] },
mode: 'development',
target: 'node',
externals: [
/* Firebase has some troubles being webpacked when in
in the Node environment, let's skip it.
Note: you may need to exclude other dependencies depending
on your project. */
/^firebase/
],....
...
}
externals: [
/^firebase/
]
Causes an error when running
npm run serve:ssr

module.exports = firebase/app;
^
ReferenceError: firebase is not defined

Pls update the doc :)

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