Skip to content

Conversation

bayuasrori
Copy link

@bayuasrori bayuasrori commented Dec 2, 2024

I encountered an error when running bun run src/main.ts: the source map could not be found. Since Bun can directly run .ts files, I simply returned the file path.

I find error when using ```bun run src/main.ts``` the sourceMap is not found. Since bun can run .ts file so i just return the file path
Copy link

vercel bot commented Dec 2, 2024

@bayuasrori is attempting to deploy a commit to the Kevin's Projects Team on Vercel.

A member of the Team first needs to authorize it.

@bayuasrori bayuasrori changed the title Update file.scanner.ts Update file.scanner.ts bun run src/main.ts the sourceMap is not found. Dec 2, 2024
Copy link

vercel bot commented Dec 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nestjs-trpc-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 8, 2024 5:26pm

@KevinEdry
Copy link
Owner

Is there a possibility of someone using Bun but running js files? because from what I can deduce from the code it will default to the filepath directly for every Bun runtime

@bayuasrori
Copy link
Author

Oh, you’re right! There is a possibility of running the compiled .js files in ./dist using Bun. However, since the source map is only used to get the .ts path, I think it’s fine. I’ve tested running the compiled JavaScript, and it works perfectly with Bun.

@KevinEdry
Copy link
Owner

@bayuasrori hey, can you fix the code so the tests will pass?

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

Successfully merging this pull request may close these issues.

2 participants