Skip to content

Strange parseTree from 'jsonc-parser' error ('jsonc-parser' is a CommonJS module, which may not support all module.exports as named exports.) #1111

Closed
@Zer0xxxx

Description

@Zer0xxxx

When I start my Docker container, I get this error:

file:///root/.bun/install/global/node_modules/wireit/lib/util/ast.js:7
import { parseTree as parseTreeInternal } from 'jsonc-parser';
         ^^^^^^^^^
SyntaxError: Named export 'parseTree' not found. The requested module 'jsonc-parser' is a CommonJS module, which may not support all module.exports as named exports.

I've only noticed it today, it worked properly some days ago.

I'm using:

  • Bun v1.1.15
  • Dockerfile based on ubuntu:24.04
  • Wireit v0.14.4

wireit is globally installed with my Dockerfile, using: bun i -g wireit
(Also tried bun i -g wireit@0.14.4, didn't change the result.)

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