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

Unable to use npm packages in deno deploy #17030

Closed
harisarang opened this issue Dec 13, 2022 · 3 comments
Closed

Unable to use npm packages in deno deploy #17030

harisarang opened this issue Dec 13, 2022 · 3 comments

Comments

@harisarang
Copy link

I am trying to deploy an express application in deno deploy.

import express from "npm:[email protected]";

const app = express();

app.get("/", (_req: any, res: any) => {
  res.send("Hello World!");
});

app.listen(80, () => {
  console.log("Server is listening on port 80");
});

But when I try to deploy it. I am getting the following error
image

I can see the deployment step that express is downloaded. Can you someone please help me out on this ?

@markthree
Copy link
Contributor

@harisarang It seems that it doesn't support it yet. You can use cdn instead 👉 https://esm.sh/[email protected]

@harisarang
Copy link
Author

Ohh! Thanks. Then this issue can be used for tracking the support

@bartlomieju
Copy link
Member

Please continue in denoland/deploy_feedback#314

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

No branches or pull requests

3 participants