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

Bad error message when target is not exported #367

Open
deciduously opened this issue Dec 4, 2024 · 0 comments
Open

Bad error message when target is not exported #367

deciduously opened this issue Dec 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@deciduously
Copy link
Member

Reproduction:

export default tg.target(() => notExported());
const notExported = tg.target(() => 5);

Result:

info target tgt_01wccy0aj43eckt8z4wnr2qtzsf335d97jz1m66r6q8bhxdc7j8x80
info build bld_00069s46bbd5xf34k4zhan5300wr
<unknown>
error failed to run the command
-> Uncaught TypeError: Cannot convert undefined or null to object
-> the build failed
error: script "tgr" exited with code 1
@deciduously deciduously added the bug Something isn't working label Dec 4, 2024
@nitsky nitsky changed the title Bad error message when target binding is not exported Bad error message when target is not exported Dec 16, 2024
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

1 participant