Skip to content

[Tracking]: Incompability with bun #881

Description

@Norbiros

Note

I don't think there is anything to fix in this project, other than possibly adding a warning message. This is just a tracking issue, so other developers can quickly identify its cause.

@nuxt/scripts v2 uses:

import { findPackageJSON } from 'node:module'

However, Bun does not implement findPackageJSON, which can cause installation to fail with errors such as:

[error] (0 , _nodeModule.findPackageJSON) is not a function
  at readInstalledPackageVersion (data:text/javascript;base64,ZXhwb3J0IGRlZmF1bHQgKGFzeW5jIGZ1bmN0aW9uIChleHBvcnRzLCByZXF1aXJlLCBtb2R1bGUsIF9fZmlsZW5hbWUsIF9fZGlybmFtZSwgaml0aUltcG9ydCwgaml0aUVTTVJlc29sdmUpIHsgInVzZSBzdHJpY3QiO09iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLCAiX19lc01vZHVsZSIsIHsgdmFsdWU6IHRydWUgfSk7ZXhwb3J0cy5TVEFUSUNfUFJPWFlfUFJFU0VUUyA9IHZvaWQgMDtleHBvcnRzLmFwcG
...

This should be resolved upstream once oven-sh/bun#37947 gets merged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    harlan-agent-wait-to-implementIssue triage found work that should wait before implementation.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions