Skip to content

JS minification error #36

Description

@PixelBoii

I ran into this error after launching ncode earlier:

ERROR  H4 is not a function. (In 'H4(H4)', 'H4' is an instance of Object)

     /$bunfs/root/cli.js:362606:15

     362603:   return H4.filter((A) => !_s$($, A));
     362604: }
     362605: function Hg(H4, $) {
     362606:   const A = H4(H4);
     362607:   const L = Mg($, H4);
     362608:   const D = (f, I) => f.name.localeCompare(I.name);
     362609:   return iP(l0$(A).concat(L.sort(D)), "name");

     - Hg (/$bunfs/root/cli.js:362606:15)
     - <anonymous> (/$bunfs/root/cli.js:488946:17)
     - useMemo (/$bunfs/root/cli.js:111406:17)
     - s3L (/$bunfs/root/cli.js:498581:17)
     - m0 (/$bunfs/root/cli.js:107198:13)
     - $M (/$bunfs/root/cli.js:108155:13)
     - en (/$bunfs/root/cli.js:110777:17)
     - CkH (/$bunfs/root/cli.js:110674:11)
     - uLH (/$bunfs/root/cli.js:110657:16)
     - rn (/$bunfs/root/cli.js:110428:25)
     - async <anonymous> (/$bunfs/root/cli.js:516659:16)

I'm not sure if this is a bun issue or an ncode issue, but changing SAFE_STANDALONE_MINIFY.identifiers to false fixed it for me. Just wanted to highlight in case it can be fixed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions