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

[BUG] Slack app can't be deployed with npm packages #70

Closed
3 tasks done
higebu opened this issue Oct 18, 2023 · 3 comments
Closed
3 tasks done

[BUG] Slack app can't be deployed with npm packages #70

higebu opened this issue Oct 18, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@higebu
Copy link

higebu commented Oct 18, 2023

Describe the bug

Slack app can't be deployed with npm packages, because deno bundle doesn't support npm packages and deno bundle has been deprecated(https://docs.deno.com/runtime/manual/tools/bundler). Please use deno_emit instead of deno bundle.

Requirements (place an x in each of the [ ])**

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

To Reproduce

Steps to reproduce the behavior:

  1. Import a npm package like this: import OpenAI from 'npm:openai';
  2. slack deploy

Expected behavior

A clear and concise description of what you expected to happen.

Slack app should be deployed with npm packages.

Screenshots

If applicable, add screenshots to help explain your problem.

⠼ Packaging app for deploymenterror: npm specifiers have not yet been implemented for this subcommand (https://github.com/denoland/deno/issues/15960). Found: npm:/[email protected]
⠴ Packaging app for deploymentError bundling function file: translate
error: Uncaught (in promise) Error: Error bundling function file: translate
throw new Error(`Error bundling function file: ${fnId}`);
            ^
at createFunctionFile (https://deno.land/x/[email protected]/build.ts:82:13)
at eventLoopTick (ext:core/01_core.js:183:11)
at async validateAndCreateFunctions (https://deno.land/x/[email protected]/build.ts:39:5)
at async https://deno.land/x/[email protected]/build.ts:127:3
Check /home/user/.slack/logs/slack-debug-20231018.log for full error logs

🚫 error packaging project: Command for 'BuildProject' returned an error: exit status 1 (sdk_hook_invocation_failed)

Reproducible in:

Deno version: v1.37.2
Slack CLI version: v2.10.0

Additional context

Add any other context about the problem here.

@higebu higebu added the bug Something isn't working label Oct 18, 2023
@filmaj
Copy link

filmaj commented Oct 18, 2023

As a workaround, you can use a npm via a CDN like esm.sh as described in https://docs.deno.com/runtime/manual/node/cdns

@higebu
Copy link
Author

higebu commented Oct 19, 2023

@filmaj Thank you!

@higebu
Copy link
Author

higebu commented Oct 27, 2023

Closed by #71
Thank you!

@higebu higebu closed this as completed Oct 27, 2023
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

2 participants