Skip to content

Build pipeline does not support newer JS syntax #7477

@emilykl

Description

@emilykl

Attempting to use the optional chaining operator (introduced 2020) in #7474 raised an error when running npm run build:

Image

This seems to be because falafel (used in one of the preprocessing steps) depends on an older version of the acorn parser (7.4.1, released 5 years ago).

Adding an override to package.json to bump the acorn version allows the build to complete successfully.

"overrides": {
    "falafel": {
      "acorn": "^8.1.1"
    }

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