Project

General

Profile

Actions

Bug #28443

closed

ReactApp component fails with webpack-4

Added by Redmine Asana Bot almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
JavaScript stack
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Asana task assigned to Avi Sharvit

Since the Layout exported with wrappers, it fails when calling `Layout.propTypes.data`

```js
// Layout/index.js
export default withRouter(connect(mapStateToProps, mapDispatchToProps)(Layout));

// ReactApp.js
import Layout from '../components/Layout';

layout: Layout.propTypes.data,
```

Need to import the propTypes directly

Actions

Also available in: Atom PDF