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

Astro 3 - build failed with Deno adapter and React integration #8390

Closed
1 task
flamrdevs opened this issue Sep 4, 2023 · 3 comments · Fixed by #8652
Closed
1 task

Astro 3 - build failed with Deno adapter and React integration #8390

flamrdevs opened this issue Sep 4, 2023 · 3 comments · Fixed by #8652
Labels
- P4: important Violate documented behavior or significantly impacts performance (priority) feat: ssr Related to SSR (scope)

Comments

@flamrdevs
Copy link

Astro Info

Astro                    v3.0.7
Node                     v20.5.1
System                   Windows (x64)
Package Manager          pnpm
Output                   server
Adapter                  @astrojs/deno
Integrations             @astrojs/react

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

Error when run pnpm build

 error   Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. Received protocol 'astro:'
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. Received protocol 'astro:'
    at new NodeError (node:internal/errors:405:5)
    at throwIfUnsupportedURLScheme (node:internal/modules/esm/load:138:11)
    at defaultLoad (node:internal/modules/esm/load:89:3)
    at DefaultModuleLoader.load (node:internal/modules/esm/loader:263:26)
    at DefaultModuleLoader.moduleProvider (node:internal/modules/esm/loader:179:22)
    at new ModuleJob (node:internal/modules/esm/module_job:63:26)
    at #createModuleJob (node:internal/modules/esm/loader:203:17)
    at DefaultModuleLoader.getJobFromResolveResult (node:internal/modules/esm/loader:156:34)
    at DefaultModuleLoader.getModuleJob (node:internal/modules/esm/loader:141:17)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:33)
 ELIFECYCLE  Command failed with exit code 1.

What's the expected result?

Able to integrate React with Deno adapter

Link to Minimal Reproducible Example

https://stackblitz.com/github/flamrdevs/astro-deno-react

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Sep 4, 2023
@BenjaminJameson
Copy link

same issue for me

@lilnasy lilnasy added pkg: react Related to React (scope) - P4: important Violate documented behavior or significantly impacts performance (priority) feat: ssr Related to SSR (scope) and removed needs triage Issue needs to be triaged labels Sep 6, 2023
@shuy0
Copy link

shuy0 commented Sep 10, 2023

I have the same problem using Deno with Vue integration.
https://stackblitz.com/edit/astro-deno-vue

@Schoude
Copy link

Schoude commented Sep 14, 2023

Yep, this is still a problem. Astro is in version 3.1.0 now but the deno and vue integrations still did not update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P4: important Violate documented behavior or significantly impacts performance (priority) feat: ssr Related to SSR (scope)
Projects
None yet
5 participants