Skip to content

Conditional chaining in resulting js #12

@maasencioh

Description

@maasencioh

On the building process of storybook I'm having this error

ERROR in ./node_modules/base-analysis/lib-esm/util/autoPeakPicking.js 12:45
Module parse failed: Unexpected token (12:45)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| export function autoPeakPicking(measurement, options = {}) {
|     const { xVariable = 'x', yVariable = 'y', normalizationOptions, minPeakWidth, gsdOptions = {}, } = options;
>     let x = measurement.variables[xVariable]?.data;
|     let y = measurement.variables[yVariable]?.data;
|     if (!x || !y)

I understand that the conditional chaining is not supported, should we build this package in a lower level or is it better to support this from the storybook webpack? @targos @lpatiny

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