-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge is not a function at mergeH5PIntegration #2196
Comments
changing the line to *edit: not all the times. still having the error... |
@schmt5 @tuxes3 Sorry about not answering earlier. I've turned off notifications for this repo as the renovate bot floods my inbox with pull requests. It's best to mention me, so I get a notification. I think @tuxes3 solution should help. Changing to the outdated That the error comes from |
@sr258 Changing the import to I will try to create a minimal example - we use ViteJS, and maybe there is a misconfiguration on our side during bundling. But nevertheless I think the import from the Furthermore there was another library that needed to change its import to fix the same issue: getsentry/sentry-electron#403 |
Hi @sr258 I could reproduce a minimal example with Vite. I forked your repository, created a new branch |
@sr258 I also get this error with our Meteor example when I play a content and then try to edit it. |
@QuanTumli @sr258 Sorry, about taking my time with this. I've changed the import and adapted the TypeScript configuration for it to work. Ultimately, I think this is caused by a difference in how the TypeScript compiler and Babel deal with imports if there is no default export (which is the case for deepmerge). I've triggered the next release and the fix is included in it. If the CI pipelines run through (I'm a bit worried about GitHub rate limiting), the release should be out in a few minutes. |
The release is out on NPM (9.2.0). I would be happy about confirmation that this issue has been fixed. |
@sr258 Yes it is working. Thank you for the fix! 💯 |
First of all, thanks a lot for your work.
In our implementation (based on
h5p-rest-example-client
) we get the following error:h5p-utils.js
import themerge
-function form deepmerge as ESMBut in the deepmerge documentation is written:
https://www.npmjs.com/package/deepmerge#include
Can you adjust the import? Or is this not the problem?
Another wierd thing I noticed is, that the error is from
h5p-utils.ts
but we just have ah5p-utils.js
file. Nosrc
-folder is inside theh5p-webcomponents
package.The text was updated successfully, but these errors were encountered: