DenoDDeno
Powered by
ozanO
Denoβ€’6mo agoβ€’
3 replies
ozan

ERR_UNSUPPORTED_ESM_URL_SCHEME when building an Astro app with React islands

After
deno task astro add react
deno task astro add react
,
deno task build
deno task build
fails with
ERR_UNSUPPORTED_ESM_URL_SCHEME
ERR_UNSUPPORTED_ESM_URL_SCHEME
.

All the information online points to using node or bun. I'm not entirely familiar with details of build systems. So I need help! πŸ™‚

My deno.json looks like this:

{
  "imports": {
    "@astrojs/alpinejs": "npm:@astrojs/alpinejs@^0.4.9",
    "@astrojs/react": "npm:@astrojs/react@^4.4.0",
    "@deno/astro-adapter": "npm:@deno/astro-adapter@^0.3.1",
    "@tailwindcss/typography": "npm:@tailwindcss/typography@^0.5.16",
    "@tailwindcss/vite": "npm:@tailwindcss/vite@^4.1.13",
    "@types/alpinejs": "npm:@types/alpinejs@^3.13.11",
    "@types/react": "npm:@types/react@^19.1.13",
    "@types/react-dom": "npm:@types/react-dom@^19.1.9",
    "alpinejs": "npm:alpinejs@^3.15.0",
    "astro": "npm:astro@^5.13.7",
    "clsx": "npm:clsx@^2.1.1",
    "prettier": "npm:prettier@^3.6.2",
    "prettier-plugin-astro": "npm:prettier-plugin-astro@^0.14.1",
    "react": "npm:react@^19.1.1",
    "react-dom": "npm:react-dom@^19.1.1",
    "tailwindcss": "npm:tailwindcss@^4.1.13"
  },
  "tasks": {
    "dev": "deno run -A npm:astro dev",
    "build": "deno run -A npm:astro build",
    "preview": "deno run -A npm:astro preview",
    "astro": "deno run -A npm:astro"
  },
  "nodeModulesDir": "auto"
}
{
  "imports": {
    "@astrojs/alpinejs": "npm:@astrojs/alpinejs@^0.4.9",
    "@astrojs/react": "npm:@astrojs/react@^4.4.0",
    "@deno/astro-adapter": "npm:@deno/astro-adapter@^0.3.1",
    "@tailwindcss/typography": "npm:@tailwindcss/typography@^0.5.16",
    "@tailwindcss/vite": "npm:@tailwindcss/vite@^4.1.13",
    "@types/alpinejs": "npm:@types/alpinejs@^3.13.11",
    "@types/react": "npm:@types/react@^19.1.13",
    "@types/react-dom": "npm:@types/react-dom@^19.1.9",
    "alpinejs": "npm:alpinejs@^3.15.0",
    "astro": "npm:astro@^5.13.7",
    "clsx": "npm:clsx@^2.1.1",
    "prettier": "npm:prettier@^3.6.2",
    "prettier-plugin-astro": "npm:prettier-plugin-astro@^0.14.1",
    "react": "npm:react@^19.1.1",
    "react-dom": "npm:react-dom@^19.1.1",
    "tailwindcss": "npm:tailwindcss@^4.1.13"
  },
  "tasks": {
    "dev": "deno run -A npm:astro dev",
    "build": "deno run -A npm:astro build",
    "preview": "deno run -A npm:astro preview",
    "astro": "deno run -A npm:astro"
  },
  "nodeModulesDir": "auto"
}
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

error Unsupported scheme node for module `nodemodule`. Supported schemes
PixelPPixel / help
4y ago
Advice on building on running a React app.
πŸŽ€π”Έβ„•π”Ύπ”Όπ•ƒ π”»π•†π•ƒπ•ƒπ”½π”Έβ„‚π”ΌπŸŽ€πŸ‡΅πŸ‡ΈοΏ½πŸŽ€π”Έβ„•π”Ύπ”Όπ•ƒ π”»π•†π•ƒπ•ƒπ”½π”Έβ„‚π”ΌπŸŽ€πŸ‡΅πŸ‡Έ / help
2y ago