Skip to content

deno bundle fails to bundle npm:mime-db due to json import #30263

@marvinhagemeister

Description

@marvinhagemeister

Steps to reproduce

  1. Create file foo.ts
import * as mime from "npm:mime-db";
console.log(mime);
  1. Run deno bundle foo.ts

Output:

$ deno bundle foo.ts
⚠️ deno bundle is experimental and subject to changes
error: Attempted to load JSON module without specifying "type": "json" attribute in the import statement.
    at file:///Users/marvinh/Library/Caches/deno/npm/registry.npmjs.org/mime-db/1.54.0/index.js:8:29
error: bundling failed

Version: Deno 2.4.3

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions