Skip to content

EmbedJS in CJS #216

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

Open
Droppix opened this issue Apr 18, 2025 · 1 comment
Open

EmbedJS in CJS #216

Droppix opened this issue Apr 18, 2025 · 1 comment
Assignees
Labels

Comments

@Droppix
Copy link

Droppix commented Apr 18, 2025

I tried using it with NodeJS v20 (CJS), but I can't seem to get it to work; “require” doesn't work. I saw that you had a “build:cjs” script, but it displays an error....

Error Error: ENOENT: no such file or directory, open '/Users/xxxx/Dev/tmp/embedjs/embedJs/dist/esm/embedjs/src/core/rag-application-builder.cjs'
    at async open (node:internal/fs/promises:639:25)
    at async writeFile (node:internal/fs/promises:1212:14)
    at async moveAndRename (file:///Users/xxx/Dev/tmp/embedjs/embedJs/scripts/move-cjs-to-dist.js:30:13)
    at async moveAndRename (file:///Users/xxxx/Dev/tmp/embedjs/embedJs/scripts/move-cjs-to-dist.js:12:13)
    at async moveAndRename (file:///Users/xxxx/Dev/tmp/embedjs/embedJs/scripts/move-cjs-to-dist.js:12:13)
    at async moveAndRename (file:///Users/xxxx/Dev/tmp/embedjs/embedJs/scripts/move-cjs-to-dist.js:12:13) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/xxx/Dev/tmp/embedjs/embedJs/dist/esm/embedjs/src/core/rag-application-builder.cjs'
}
```

Suggestion?
Thanks
Copy link

github-actions bot commented May 3, 2025

This issue is stale because it has been open for 14 days with no activity.

@github-actions github-actions bot added the stale label May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants