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

./dist is empty #4

Closed
vgkids opened this issue Jan 31, 2024 · 3 comments
Closed

./dist is empty #4

vgkids opened this issue Jan 31, 2024 · 3 comments

Comments

@vgkids
Copy link

vgkids commented Jan 31, 2024

Getting an error trying to import any of the classes. Simplest example:

import { LLMApplicationBuilder } from '@llm-tools/embedjs';

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '.../embedJsDemo/node_modules/@llm-tools/embedjs/dist/core/llm-application.js' imported from ...embedJsDemo/node_modules/@llm-tools/embedjs/dist/index.js

Likely related, starting with version 0.0.44, @llm-tools/embedjs/dist is missing everything but index.js and the package only contains 4 files.
https://www.npmjs.com/package/@llmembed/embedjs/v/0.0.44?activeTab=code

0.0.32 looks closer to expectation, with 75 files:
https://www.npmjs.com/package/@llmembed/embedjs/v/0.0.32?activeTab=code

@adhityan
Copy link
Collaborator

Thanks @vgkids for bringing this to my attention. I am looking into this.

@adhityan
Copy link
Collaborator

I have published a new version 0.0.48 that addresses the issue. I have tested this with the example slack bot.

The issue was two fold -

  1. NPM uses .gitignore if .npmignore is absent. dist folder was added to .gitignore and that caused issues.
  2. Using the format dist/**/* in files was also not working correctly. Switched to the simpler dist string fixes that issue.

Will leave the issue open for now. If it works for you, please go ahead and close the issue.

@vgkids
Copy link
Author

vgkids commented Jan 31, 2024

Looks good, I'm able to import the builder now and contents of ./dist look plausible.

@vgkids vgkids closed this as completed Jan 31, 2024
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

2 participants