Skip to content

WASM modules don't work #3897

Description

@phaux

Try to use @deno/doc in /routes/api/[name].ts:

import { doc } from "jsr:@deno/doc@0.202.1";
import { define } from "../../utils.ts";

export const handler = define.handlers({
  async GET(ctx) {
    const { name } = ctx.params;
    const docs = await doc([`https://esm.sh/${name}`]);
    return Response.json(docs);
  },
});

Error: Failed to parse source for import analysis because the content contains invalid JS syntax. You may need to install appropriate plugins to handle the .wasm file format, or if it's an asset, add "**/*.wasm" to assetsInclude in your configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions