angular: Uncaught TypeError: Cannot read property 'getDOM' of undefined

I’m submitting a … (check one with “x”)

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

Upgraded from 4.0.0-beta.8 to 4.0.0-rc-1. Run project with and without AoT.

Expected behavior

The project has been running as expected before the change.

Minimal reproduction of the problem with instructions

I can give invite to private repo if needed.

What is the motivation / use case for changing the behavior?

Site doesn’t work in the browser now.

Please tell us about your environment:

Macbook Pro with macOS Sierra

  • Angular version: 2.0.X

4.0.0-rc.1

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Latest version of Chrome.

  • Language: [all | TypeScript X.X | ES6/7 | ES5] Typescript 2.2.1

  • Node (for AoT issues): node --version =
    node = 6.9.4 npm = 3.10.10

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 28 (11 by maintainers)

Most upvoted comments

I don’t know maybe it is a bug but we have access to getDom through

import { ɵgetDOM } from '@angular/platform-browser'

http://plnkr.co/edit/yUeTxo0k8cugg6FBN5wt?p=preview

i got the same problem, Try this to upgrade your project to latest versions.

npm install @angular/common@latest @angular/compiler@latest @angular/core@latest @angular/forms@latest @angular/http@latest @angular/platform-browser@latest @angular/platform-browser-dynamic@latest @angular/platform-server@latest @angular/router@latest @angular/animations@latest --save

@henriquecustodia did you do that in the app.module ?

@DzmitryShylovich I missed upgrading flex to rc-1 (user error… face palm). I’m going to close the issue.