If you run into this error please check the version of
@haiku/core you are using via
Object.keys(window.HaikuCore) in the console.
If it shows you something like this
["3.2.19", "3.4.6"] it means that you have multiple versions of Haiku getting compiled in.
If you’re using
npm it should resolve the latest version, meaning the
package.json for the
@haiku/ modules should be using versions such as
A way to solve this issue is to use
"resolutions" in the
package.json of your project. For example:
This should work with both
yarn, ensuring you don’t pick up the extra version of
@haiku/core in your bundle.