Skip to content

[Tooling] ansi-color.js: Legacy octal escape is not permitted in strict mode #3567

@jonasvle

Description

@jonasvle

Describe the bug
RollupError: node_modules/ansi-color/lib/ansi-color.js (35:16): Legacy octal escape is not permitted in strict mode

33: var ansi_str = "";
34: for(var i=0, attr; attr = color_attrs[i]; i++) {
35: ansi_str += "\033[" + ANSI_CODES[attr] + "m";
^
36: }
37: ansi_str += str + "\033[" + ANSI_CODES["off"] + "m";

ERROR node_modules/ansi-color/lib/ansi-color.js (35:16): Legacy octal escape is not permitted in strict mode 13:58:49

To Reproduce
Steps to reproduce the behavior:

  1. Install @genkit-ai/core or any package such as @genkit-ai/googleai which use @genkit-ai/core underlying in a nuxt application
  2. Try to build the project
  3. See error

Expected behavior
The build should succeed.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Minimal reproduction: https://codesandbox.io/p/devbox/focused-mendel-568fwh?workspaceId=ws_W3Dk5bxF2Lw4qXT6z5Y4h1
Run pnpm run build

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtooling

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions