FlexLayout
FlexLayout copied to clipboard
_this.model._setChangeListener is not a function
Hey there,
i have installed the package and while setting it up, i find the following issue. "UnhandledPromiseRejectionWarning: TypeError: _this.model._setChangeListener is not a function"
Versions "flexlayout-react": "^0.3.4", "react": "^16.8.1",
I have the same issue here, when i test the Flexlayout.layout Component with Jest.
Did you have solve your issue @jigs1212 ?
the same when building with Vite
Uncaught TypeError: Nr.props.model._setChangeListener is not a function
from js map:
// Layout.js:227:27
_this.props.model._setChangeListener(_this.onModelChange);
UPDATE
my fault, when trying to "fix" global in the wrong way: https://dev.to/richardbray/how-to-fix-the-referenceerror-global-is-not-defined-error-in-sveltekitvite-2i49#comment-1og7d and https://vitejs.dev/config/shared-options.html#define