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

BUG: fixed "ReferenceError: type is not defined" #968

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

iCodr8
Copy link

@iCodr8 iCodr8 commented Oct 30, 2019

The bug occurs when a new rectangle will be created.

@iCodr8
Copy link
Author

iCodr8 commented Nov 4, 2019

@ddproxy Can you please check and merge it?

Copy link

@arnoldtemerdek arnoldtemerdek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding the missing variable declarations ("radius" and "type") would be a great fix. We just updated from Angular 7, Type Script 3.1.6 to Angular 8, Type Script 3.5.3 and we had these errors. With the previous version it was working fine. Our current workaround is quite ugly because we have to override two methods due to these two missing variables.

@reblace
Copy link

reblace commented May 3, 2020

You can also fix this issue by changing your build target (in tsconfig.json) to "es5." Angular CLI 8/9 moving to a target of es2015 seems to have switched the behavior of this code to throwing an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants