Skip to content

Commit 8781013

Browse files
committed
Fix TypeError: Class constructor cannot be invoked without 'new'
1 parent fb7e428 commit 8781013

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
]
1111
],
1212
"plugins": [
13-
"transform-class-properties"
13+
"@babel/plugin-proposal-class-properties",
14+
"@babel/plugin-transform-classes"
1415
]
1516
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@
6262
},
6363
"devDependencies": {
6464
"@babel/core": "^7.1.6",
65+
"@babel/plugin-proposal-class-properties": "^7.1.0",
66+
"@babel/plugin-transform-classes": "^7.1.0",
6567
"@types/node": "^8",
6668
"babel-eslint": "^8.0.2",
6769
"babel-loader": "^8.0.4",
68-
"babel-plugin-transform-class-properties": "^6.24.1",
69-
"babel-plugin-transform-runtime": "^6.23.0",
7070
"babel-preset-env": "^1.7.0",
7171
"eslint": "^5.1.0",
7272
"eslint-import-resolver-webpack": "^0.10.0",

0 commit comments

Comments
 (0)