Skip to content
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

Adding wasm-git inside a react app #94

Closed
rinkesh314e opened this issue Apr 1, 2024 · 0 comments
Closed

Adding wasm-git inside a react app #94

rinkesh314e opened this issue Apr 1, 2024 · 0 comments

Comments

@rinkesh314e
Copy link

rinkesh314e commented Apr 1, 2024

I'm encountering an issue while integrating a project into my React app. Specifically, I'm referring to issue #16 for guidance. To troubleshoot, I attempted to utilize https://github.com/petersalomonsen/javascriptmusic However, I'm facing difficulty loading the lg2.js and lg2.wasm files from https://unpkg.com/[email protected]/

Upon inspection of the logs, it appears that the issue stems from the response header containing an incorrect MIME type. Instead of the expected application/wasm, the response is returning application/text.

I've also experimented with incorporating the npm module directly into my React app. However, this approach failed due to the absence of fs, path and similar dependecies which are found in node environment and are not in the app. Should I try polyfilling these dependencies?

Request for Suggestions:
I would greatly appreciate any suggestions or guidance on resolving this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant