Project

General

Profile

Actions

Bug #28443

closed

ReactApp component fails with webpack-4

Added by Redmine Asana Bot over 4 years ago. Updated about 4 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 #1

Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7234 added
Actions #2

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases 2.0.0 added
Actions #3

Updated by Avi Sharvit over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Tomer Brisker about 4 years ago

  • Category set to JavaScript stack
Actions

Also available in: Atom PDF