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 yarn or npm it should resolve the latest version, meaning the package.json for the @haiku/ modules should be using versions such as  "^3.2.19" and "^3.4.6" .

A way to solve this issue is to use "resolutions" in the package.json of your project. For example:

This should work with both npm and yarn, ensuring you don’t pick up the extra version of @haiku/core in your bundle.

Did this answer your question?