What is wrong?
When I try to call the trainAsync method, I get a strange error in the console [Object object]
Sample code where a similar issue occurs: https://codepen.io/ximik753/pen/pobzJgQ
Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.84. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
Confirmed. Looks like bug in one of the dependency.
TypeError: _thaw2.default is not a constructor
in brain.js/dist/neural-network.js — line 599
I can suggest a hot fix. Open file node_modules/brain.js/src/neural-network.js. Then change the first line
const { Thaw } = require('thaw.js');
To this
const { Thaw } = require('thaw.js/dist');