Skip to content
This repository was archived by the owner on Mar 1, 2020. It is now read-only.
This repository was archived by the owner on Mar 1, 2020. It is now read-only.

TypeError: Cannot read property 'replace' of undefined #31

Description

@kemayo

Looking at this, I suppose it's that the file map isn't being built (for whatever reason).

dlynch@wmf1453:~/wikimedia$ cdnjs-importer -g https://gerrit.wikimedia.org/r/p/oojs/core -p ~/src/cdnjs
info  Pulling from origin.
info  Cloning https://gerrit.wikimedia.org/r/p/oojs/core into /var/folders/28/9vnnrdl97hx9zt4z9n15nxgc0000gp/T/tmp-804249v5twSnysk6U
info  Set the source path: /dist
info  Creating the version directory: /Users/dlynch/src/cdnjs/ajax/libs/oojs/1.1.10
info  Getting the library files.
/usr/local/lib/node_modules/cdnjs-importer/lib/index.js:211
                package.filename = files[0].replace(pwd, "");
                                           ^

TypeError: Cannot read property 'replace' of undefined
    at /usr/local/lib/node_modules/cdnjs-importer/lib/index.js:211:44

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