Skip to content

TypeError: extensions.indexOf is not a function #278

@estevezluis1

Description

@estevezluis1

When using babelify --extensions [ .ts ] --presets [ @babel/preset-typescript ] I get a TypeError.

TypeError: extensions.indexOf is not a function
.../node_modules/babelify/index.js:71:18)

Seems like extensions is an object { _: ['.ts'] }

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