Skip to content

<amp-script> outputs error to console for layout != 'container' #26398

@morsssss

Description

@morsssss

Whenever I use with a layout that's not container - e.g., fixed or responsive, the following error is output to the console:

Expected height to be available: null - error.js:195

While this may seem trivial, I've already seen examples where AMP developers reached out to Googlers for help because they couldn't figure out how to debug their code, and they assumed this bug was their fault.

See screenshot for full stacktrace:

Screen Shot 2020-01-17 at 7 02 46 PM

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions