deploy_feedback icon indicating copy to clipboard operation
deploy_feedback copied to clipboard

[Bug]: Deploy to Deno Failed after Upgrading Fresh to 1.6.3

Open cj-1010-1414 opened this issue 2 years ago • 3 comments

Problem description

error: Uncaught (in promise) SyntaxError: The requested module 'js-beautify' does not provide an export named 'html' at file:///home/runner/work/pendaftaran-efr/pendaftaran-efr/node_modules/.deno/[email protected]/node_modules/@react-email/render/dist/index.mjs:49:10
  const manifest = (await import(toFileUrl(join(dir, "fresh.gen.ts")).href))
                    ^
    at async dev (https://deno.land/x/[email protected]/src/dev/dev_command.ts:38:21)
    at async file:///home/runner/work/pendaftaran-efr/pendaftaran-efr/dev.ts:8:1
Error: Process completed with exit code 1.

This is the message. The error seems to happen at npm resend library. But this doesn't happen at version 1.6.1, prior updating.

This also doesn't happen on local development machine with 1.6.3. Only on Deno deploy.

Steps to reproduce

  1. Installing Fresh 1.6.1
  2. Import npm:resend
  3. Use it
  4. Upgrade Fresh to 1.6.3

Expected behavior

It should have worked as there's no problem at local machine.

Environment

version: Deno 1.39.4 os: Ubuntu 22.04

Possible solution

No response

Additional context

No response

cj-1010-1414 avatar Jan 23 '24 09:01 cj-1010-1414

CC @marvinhagemeister

piscisaureus avatar Jan 24 '24 00:01 piscisaureus

It's deployed now. But I don't know why

cj-1010-1414 avatar Jan 24 '24 10:01 cj-1010-1414

@piscisaureus I can't find something that would relate to this being an issue with Fresh. The module in question is a cjs module and the module loading portion in Deno should take care of that.

marvinhagemeister avatar Jan 24 '24 11:01 marvinhagemeister