-
Notifications
You must be signed in to change notification settings - Fork 28
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
[BUG] < Packaging app for deployment✘ [ERROR] Cannot convert undefined or null to object [plugin deno-loader]> #374
Comments
Can you try downgrading deno to 1.x? E.g. 1.46.3 is the last deno 1.x version. I think you can do that with For context, here is what's happening:
|
I updated it, I changed the import_map.json, I followed this guide for the environment variables (https://api.slack.com/automation/environment-variables#access-function)
Here is the specified line |
Can you share the contents of the |
import_map.json Slack.json
|
Thanks.
In the sentence above you say "I can deploy" in both cases - I think one of these is supposed to be "cannot", yes? Try adding In general, if/until the deployed environment supports deno 2 (it currently runs on 1.46.2 which you can always check by looking at the |
What u mean 'adding adding esm.sh to your manifest.ts' outgoingDomains array'? |
Hello,
basically, I am developing a trigger, and with slack run, it runs smoothly, but with slack deploy, I have the following error:
⠼ Packaging app for deployment✘ [ERROR] Cannot convert undefined or null to object [plugin deno-loader] Error bundling function file "function" with esbuild error: Uncaught (in promise) Error: Build failed with 1 error: error: Cannot convert undefined or null to object let error = new Error(text); ^ at failureErrorWithLog (https://deno.land/x/[email protected]/mod.js:1626:15) at https://deno.land/x/[email protected]/mod.js:1035:25 at runOnEndCallbacks (https://deno.land/x/[email protected]/mod.js:1461:45) at buildResponseToResult (https://deno.land/x/[email protected]/mod.js:1033:7) at https://deno.land/x/[email protected]/mod.js:1062:16 at responseCallbacks.<computed> (https://deno.land/x/[email protected]/mod.js:679:9) at handleIncomingPacket (https://deno.land/x/[email protected]/mod.js:739:9) at readFromStdout (https://deno.land/x/[email protected]/mod.js:655:7) at https://deno.land/x/[email protected]/mod.js:1924:11 at eventLoopTick (ext:core/01_core.js:175:7) Packaging app for deployment
I'm Using:
slack v2.30.1
deno 2.0.4 (stable, release, aarch64-apple-darwin)
v8 12.9.202.13-rusty
typescript 5.6.2
Actually, I have this error even with empty functions basically, what could it be?
Thanks a lot!
Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
The text was updated successfully, but these errors were encountered: