Skip to content

Stackblitz in documentation for "Creating a custom form field control" is showing an error.  #13021

Closed
@StephenWTurner

Description

@StephenWTurner

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Stackblits demo of "Creating a custom form field control" should load.

What is the current behavior?

Error displayed:

Error occurred:
Cannot read property 'match' of undefined
Instantiating app/form-field-custom-control-example.html
Loading app/form-field-custom-control-example.ts
Loading main.ts
Loading blitzapp

What are the steps to reproduce?

Goto documentation at https://material.angular.io/guide/creating-a-custom-form-field-control
Click the link to Stackblitz in the first example at https://stackblitz.com/angular/yjpjxdonleyy?file=app%2Fform-field-custom-control-example.ts

What is the use-case or motivation for changing an existing behavior?

n/a

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Found on Chrome Version 68.0.3440.106 (Official Build) (64-bit)
Verified on Internet Explorer 11.0.9600.19080 / 11.0.70
I've just updated, the problem persists in Chrome Version 69.0.3497.81 (Official Build) (64-bit)

Is there anything else we should know?

Console shows error as

preview-1f727e0cbae2a3ba41a0a.js:1 Error: Cannot read property 'match' of undefined
Instantiating https://angular-29ggpg.stackblitz.io/tmp/appfiles/app/form-field-custom-control-example.html
Loading https://angular-29ggpg.stackblitz.io/tmp/appfiles/app/form-field-custom-control-example.ts
Loading https://angular-29ggpg.stackblitz.io/tmp/appfiles/main.ts
Loading blitzapp
at Ye (engineblock-bc7b07e99ec5c6739c766b4898e4cff5acfddc137ccb7218377069c32731f1d0.js:2)
at engineblock-bc7b07e99ec5c6739c766b4898e4cff5acfddc137ccb7218377069c32731f1d0.js:1

Other stackblitz load correctly i.e. https://stackblitz.com/angular/kkljxxqvgma?file=app%2Felevation-overview-example.ts

Metadata

Metadata

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