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

eliza-starter, pnpm build, No input files, try "tsup <your-file>" instead #1471

Closed
adapt7 opened this issue Dec 26, 2024 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@adapt7
Copy link

adapt7 commented Dec 26, 2024

pnpm i && pnpm build && pnpm start

fails on build command with output:

Done in 5.8s

> @ai16z/[email protected] build eliza-starter
> tsup --format esm --dts

No input files, try "tsup <your-file>" instead
 ELIFECYCLE  Command failed with exit code 1.

How to fix this?

@adapt7 adapt7 added the bug Something isn't working label Dec 26, 2024
@aviaisenberg
Copy link

I wrote the code to fix this. How do I push into the repo?

@twiinGG
Copy link

twiinGG commented Jan 2, 2025

I faced this but found a solution in the project Discord. Here's the fix that worked for me:

I fixed "No input files" error by updating the build script in package.json to explicitly specify the entry point:
"build": "tsup src/index.ts --format esm --dts"

The error occurred because tsup couldn't locate the TypeScript files to compile. Adding the explicit path to src/index.ts resolved this issue.

@atmirrr
Copy link

atmirrr commented Jan 2, 2025

I faced this but found a solution in the project Discord. Here's the fix that worked for me:

I fixed "No input files" error by updating the build script in package.json to explicitly specify the entry point: "build": "tsup src/index.ts --format esm --dts"

The error occurred because tsup couldn't locate the TypeScript files to compile. Adding the explicit path to src/index.ts resolved this issue.

Thanks! It worked well for me!

@AIFlowML
Copy link
Collaborator

AIFlowML commented Jan 6, 2025

Seem that the issue was resolved.
I close this now.

@AIFlowML AIFlowML closed this as completed Jan 6, 2025
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

5 participants