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

[Tracking] WebLLM: Frontend Compatibility Issues and CDN Delivery #398

Closed
3 tasks done
CharlieFRuan opened this issue May 14, 2024 · 2 comments
Closed
3 tasks done

Comments

@CharlieFRuan
Copy link
Contributor

CharlieFRuan commented May 14, 2024

This issue tracks the resolution to various front-end compatibility issues.

Action items

  • Address require() issues
  • Address perf_hooks import issue
  • Add CDN delivery

require() issue in next projects

This file is being treated as an ES module because it has a '.js' file extension and '\web-llm\examples\next-simple-chat\node_modules\@mlc-ai\web-llm\package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.

This error has been reported in various issues:

Revisit after the following PR is merged and npm is updated, should be able to resolve all issues above:

perf_hooks issue

This error is reported in issues:

@CharlieFRuan
Copy link
Contributor Author

Completed in 0.2.36 via:

@flatsiedatsie
Copy link

It's so nice to finally be able to easily copy from the examples! Thank you!

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

No branches or pull requests

2 participants