Skip to content

Path mapping instructions are incorrect #2979

Closed
@filipesilva

Description

@filipesilva

RxJS version: 5.5.0

Code to reproduce: follow https://github.com/ReactiveX/rxjs/blob/master/doc/lettable-operators.md#build-and-treeshaking

Expected behavior: rxPaths() function call works.

Actual behavior:

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.resolve (path.js:186:7)
    at module.exports (D:\sandbox\master-project\node_modules\rxjs\_esm5\path-mapping.js:8:31)

Additional information:
rxPaths source seems to receive a path that it will use for the replacement. It looks like it should be called with the path to the project's node_modules. Perhaps it should be using __dirname instead to avoid passing the path?

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