DenoDDeno
Powered by
ioBI
Denoβ€’4y agoβ€’
10 replies
ioB

Running esbuild with esbuild_deno_loader

I've spent probably four or five hours trying to track down this issue, to the point where I actually started tweaking and rebuilding old versions of esbuild to try and reproduce this bug without the help of a plugin. I have no idea. I want to find what version this started happening in to file a bug report (because I think it's an esbuild issue), but I haven't had the time to do that.

Here is the reproc code (it only errors with wasm):
import * as esbuild from "https://deno.land/x/esbuild@v0.15.10/wasm.js";
import { denoPlugin } from "https://deno.land/x/esbuild_deno_loader@0.6.0/mod.ts";

const result = await esbuild.build({
  plugins: [denoPlugin()],
  entryPoints: {
    "test": new URL("./link-to-any-deno-file.ts", import.meta.url).href
  },
  outdir: ".",
  bundle: true,
  write: false,
  format: "esm",
});

esbuild.stop();
import * as esbuild from "https://deno.land/x/esbuild@v0.15.10/wasm.js";
import { denoPlugin } from "https://deno.land/x/esbuild_deno_loader@0.6.0/mod.ts";

const result = await esbuild.build({
  plugins: [denoPlugin()],
  entryPoints: {
    "test": new URL("./link-to-any-deno-file.ts", import.meta.url).href
  },
  outdir: ".",
  bundle: true,
  write: false,
  format: "esm",
});

esbuild.stop();


Running this results in:
error: Cannot read file "Users/iob/Desktop/test/link-to-any-deno-file.ts": not implemented on js
error: Cannot read file "Users/iob/Desktop/test/link-to-any-deno-file.ts": not implemented on js


This is blocking any upgrade of the esbuild dependency for fresh.
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Decorators with esbuild-deno-loader
bennypBbennyp / help
11mo ago
esbuild_deno_loader importing Deno modules
PixelPPixel / help
4y ago
esbuild-deno-loader with npm private registry
MariusVatasoiuMMariusVatasoiu / help
2y ago
Using ESBuild with Deno
MqxMMqx / help
3y ago