FlexLayout icon indicating copy to clipboard operation
FlexLayout copied to clipboard

_this.model._setChangeListener is not a function

Open jigs1212 opened this issue 5 years ago • 2 comments

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",

jigs1212 avatar Oct 04 '19 05:10 jigs1212

I have the same issue here, when i test the Flexlayout.layout Component with Jest.

Did you have solve your issue @jigs1212 ?

Dardev12 avatar Sep 27 '22 15:09 Dardev12

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

mrudowski avatar Nov 08 '22 22:11 mrudowski