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

AoT build hangs with freezing at bundling @firebase SDKs. #904

Closed
vincent-cm opened this issue Jun 5, 2018 · 11 comments
Closed

AoT build hangs with freezing at bundling @firebase SDKs. #904

vincent-cm opened this issue Jun 5, 2018 · 11 comments

Comments

@vincent-cm
Copy link

vincent-cm commented Jun 5, 2018

[REQUIRED] Describe your environment

  • Operating System version: macOS 10.13.5
  • Firebase SDK version: @firebase/database 0.3.3
  • Firebase Product: (auth, database, storage, etc) comes from below dependency:

"firebase": "5.0.4", "angularfire2": "5.0.0-rc.10", 

"firebase": {
      "version": "5.0.4",
      "resolved": "https://registry.npmjs.org/firebase/-/firebase-5.0.4.tgz",
      "integrity": "sha512-UIlUOcISw6uiAwbsj/bamDDKJtdjx9GU2m9XgPF58DSA8IJaIbfdL6jT5C03R5mL+mMpXoKDAOeOq+ynf+R09w==",
      "requires": {
        "@firebase/app": "0.3.3",
        "@firebase/auth": "0.5.3",
        "@firebase/database": "0.3.3",
        "@firebase/firestore": "0.5.4",
        "@firebase/functions": "0.2.4",
        "@firebase/messaging": "0.3.4",
        "@firebase/polyfill": "0.3.3",
        "@firebase/storage": "0.2.3"
      }
    }

[REQUIRED] Describe the problem

When building with angular cli using ng build --prod, the memory will increase to around 10.39GB and hangs in 69% building modules 1404/1405 modules 1 active …es/@firebase/database/dist/index.cjs.js

Steps to reproduce:

You can use webpack or ng cli
ngcli: ng build --prod
webpack: cross-env BUILD_AOT=1 SOURCE_MAP=0 npm run webpack -- --config config/webpack.prod.js --mode production --progress --profile --bail

Relevant Code:

git clone git@github.com:vincent-cm/angular-starter-test.git
git checkout migrate-to-webpack4
run npm run clean:install
npm run build:aot

The process will be stucked at building @firebase SDKs.

@google-oss-bot
Copy link
Contributor

Hey there! I couldn't figure out what this issue is about, so I've labeled it for a human to triage. Hang tight.

@hiepxanh
Copy link

hiepxanh commented Jun 8, 2018

hello? any update there?

@vincent-cm
Copy link
Author

@hiepxanh Haven’t get out from it. Did u find the same issue?

@hiepxanh
Copy link

hiepxanh commented Jun 8, 2018

ERROR in Cannot read property 'map' of undefined with ng build --prod --aot I still dont know why and keep investigating

@vincent-cm
Copy link
Author

@hiepxanh did u install the rxjs-compat?

@hiepxanh
Copy link

hiepxanh commented Jun 8, 2018

nope, I use rxjs 6 directly, however I remove everything and start again with new repository. everything is OK. with ng build --aot --prod

@hiepxanh
Copy link

hiepxanh commented Jun 8, 2018

cannot install your project Failed at the node-sass@4.9.0 postinstall script.

@vincent-cm
Copy link
Author

@hiepxanh a latest version of node and npm should be used in the demo project. Thank you for your test.

@vincent-cm
Copy link
Author

Had downgrade angularfire2 to 4.0.0-rc.6.0 and firebase to 4.12.1, and it worded @hiepxanh thanks for your demo project, I did not use ng cli, probably the latest webpack I am using is not compatible with this version of @firebase SDKs

@hiepxanh
Copy link

good to know that :) have a nice day

@vincent-cm vincent-cm reopened this Jul 23, 2018
@vincent-cm
Copy link
Author

#874

@firebase firebase locked and limited conversation to collaborators Oct 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants