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

Non node.js environments have issues building (workers for instance) #507

Closed
antpb opened this issue Nov 22, 2024 · 1 comment
Closed

Non node.js environments have issues building (workers for instance) #507

antpb opened this issue Nov 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@antpb
Copy link
Contributor

antpb commented Nov 22, 2024

Describe the bug

Non node.js environments may have issues building because of some packages and how they are imported.

To Reproduce

Make a worker, include eliza/core and attempt to build. It will throw an error similar to

  ✘ [ERROR] No loader is configured for ".node" files:
  node_modules/@anush008/tokenizers-darwin-universal/tokenizers.darwin-universal.node

      node_modules/@anush008/tokenizers/index.js:116:32:
        116 │ ... nativeBinding = require('@anush008/tokenizers-darwin-universal')

Expected behavior

Build successful

Screenshots

image

PR incoming

@AndonMitev
Copy link

Is this released, I'm still experiencing same issue

"next": "15.0.3",
"@ai16z/adapter-supabase": "0.1.4-alpha.3",
"@ai16z/eliza": "0.1.4-alpha.3",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants