-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
I'm working on a starter for React + ReasonML + webpack. I wanted to use webpack-common-shake plugin. Unfortunately, when enabled, I get this TypeError:
Uncaught TypeError: this.number is not a function
How to reproduce?
- Get demo code:
-
- Clone this repository at https://github.com/mmiszy/reason-react-simple-starter/tree/35f39444691be2394854774a7f68c04484eb2d6b
npm installnpm start- open http://localhost:8081/
Expected result:
You can see Hello world, Anne! in the browser. No errors in the console
Current result:
Uncaught TypeError: this.number is not a function
at Object.numberString (main.js:4385)
at new SockJS (main.js:64)
at socket (socket.js:7)
at Object.<anonymous> (main.js:10282)
at Object.<anonymous> (main.js:10307)
at __webpack_require__ (bootstrap b5203ed…:669)
at fn (bootstrap b5203ed…:87)
at Object.<anonymous> (main.js:17077)
at __webpack_require__ (bootstrap b5203ed…:669)
at validateFormat (bootstrap b5203ed…:715)
Workaround:
Disable webpack-common-shake plugin in webpack.config.js
Metadata
Metadata
Assignees
Labels
No labels