Skip to content

Shows how class properties can't be debugged with default create-react-app debug tool setting

Notifications You must be signed in to change notification settings

coryhouse/cra-class-property-debugging-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project shows a bug in create-react-app. You can't debug class properties. The this keyword displays as undefined. If you bind in the constuctor instead, then debugging works fine. Seems the root cause is webpack's cheap-module-source-map devtool doesn't support it.

Here's an image of the issue.

This project was bootstrapped with Create React App.

About

Shows how class properties can't be debugged with default create-react-app debug tool setting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published