You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.
When using the CLI, I have encountered the following runtime error.
deno run --unstable --allow-read --allow-write --allow-env --allow-net https://deno.land/x/denopack@0.10.0/cli.ts --config ./bundle.config.ts
error: Uncaught (in promise) TypeError: Cannot destructure property 'output' of 'opts' as it is undefined.
const { output: _outputOpts, ...rollupOpts } = opts;
^
at mergeOptions (options.ts:64:19)
at runBundler (runBundler.ts:30:53)
To Reproduce
Steps to reproduce the behavior:
Run the above command.
Error! 👻
Expected behavior
I expected it to work. 😛
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
A possible solution would be to check if opts isn't undefined without destructuring it~~, but I'm unsure as to why it wouldn't be defined (especially when it's pointed at a valid configuration file)~~.
It seems like you aren't checking the value of the import([...]) call before destructuring it. One possible solution would be to throw if a --config value has been provided, and one of the following apply:
Describe the bug
When using the CLI, I have encountered the following runtime error.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expected it to work. 😛
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Checklist
The text was updated successfully, but these errors were encountered: