question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deploy error on Deno Deploy

See original GitHub issue

Hey

I tried out Fresh today and it’s a cool web framework. After hacking a small test project, I tried to deploy it on Deno Deploy.

Following error occured:

Error The deployment failed: Relative import path "preact" not prefixed with / or ./ or ../ and not in import map from "https://raw.githubusercontent.com/lucacasonato/fresh/main/src/runtime/csp.ts"

Does anyone have an idea how to fix this?

Thanks!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lucacasonatocommented, Jun 23, 2022

Yes, there have been quite a few changes recently that probably broke you. This is why the warning about the framework still being unstable is still on the home page 😃

There is now a pretty stable release available that I don’t expect to change much (the 1.0.0-rc.3 release candidate).

1reaction
nhronescommented, Jun 23, 2022

Please be aware that Fresh no longer uses a cli. The new 1.0.0-rc requires that you use …

deno run -A -r https://fresh.deno.dev my-app

to initialize your app. This will insure you have the correct import-map and initialization. Please see getting started at https://fresh.deno.dev/

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deploy Docs - Deno Deploy
A deployment is a snapshot of all code and environment variables required to run an application. Deployments are immutable after they have been...
Read more >
Deploying with a Github Action to Deno Deploy is not working ...
Automatic deploying somehow just wouldn't work for me, showing error 502 on Deno Deploy saying "DEPLOY FAILED" but no error whatsoever in ...
Read more >
oak and Deno Deploy
Deno Deploy does not currently support web sockets. Trying to upgrade a connection to a web socket will fail. The command line utility...
Read more >
Deploy to Deno Deploy - Prisma
In this guide, you'll learn how to build and deploy a simple application to Deno Deploy. The application uses Prisma to save every...
Read more >
Deno.stat is not a function error when using deno deploy
I am having a problem deploying my deno code using deno deploy. The code works perfectly locally using deployctl but fails when deployed....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found