Skip to content

Not compatible with source-map v0.6.1 #870

@3cp

Description

@3cp

I'm submitting a bug report

  • Library Version:
    0.33.1

  • Operating System:
    All

  • Node Version:
    8.10.0

  • NPM Version:
    5.8.0
    yarn is not affected

  • Browser:
    NA

  • Language:
    NA

  • Loader/bundler:
    NA

Current behavior:

Depends on user app's extra dependencies (like postcss), sometimes npm resolved source-map package to v0.6.1 instead of v0.5.7.

Yarn somehow always gives me v0.5.7.

When v0.6.1 is in used, following error is thrown

Error: original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.
at SourceMapGenerator_validateMapping [as _validateMapping] (/Users/huocp/bw/bcx-ui/node_modules/source-map/lib/source-map-generator.js:276:15)
  • What is the expected behavior?
    You can duplicate the error by forcing "source-map": "^0.6.1" in local app's package.json.

  • What is the motivation / use case for changing the behavior?

This can be temporarily fixed by adding "source-map": "^0.5.7" to aurelia-cli's package.json dependencies.
But long term fix should be updating cli's code to be compatible with latest source-map version.

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