Skip to content

Commit

Permalink
[TS] Exclude node_modules (aces#8211)
Browse files Browse the repository at this point in the history
Upgrade TS to fix a compilation error:

ERROR in /home/runner/work/Loris/Loris/modules/electrophysiology_browser/jsx/react-series-data-viewer/node_modules/@types/lodash/common/object.d.ts
2431:64-74
[tsl] ERROR in /home/runner/work/Loris/Loris/modules/electrophysiology_browser/jsx/react-series-data-viewer/node_modules/@types/lodash/common/object.d.ts(2431,65)
      TS1005: ';' expected.
  • Loading branch information
laemtl authored Nov 2, 2022
1 parent 1549b59 commit f57f38d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class EEGLabSeriesProvider extends Component<CProps> {
* @return {JSX} - React markup for the component
*/
render() {
const [signalViewer, ...rest] = this.props.children;
const [signalViewer, ...rest] = React.Children.toArray(this.props.children);
return (
<Provider store={this.store}>
{(this.state.channels.length > 0) && signalViewer}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"style-loader": "^1.1.3",
"terser-webpack-plugin": "^5.3.6",
"ts-loader": "^8.3.0",
"typescript": "^3.0.1",
"typescript": "^4.8.4",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
},
Expand Down

0 comments on commit f57f38d

Please sign in to comment.