Skip to content

parse-ms does not work with require() #13

@dionsyran2

Description

@dionsyran2

Hello,
I realized that parse-ms cannot be included with require() As i get this error

import parseMilliseconds from 'parse-ms'
^^^^^^

SyntaxError: Cannot use import statement outside a module

Thats why i used the source code from parse-ms to create parse-ms-2, https://www.npmjs.com/package/parse-ms-2
All the source is in github (https://github.com/dionsyran2/parse-ms-2), so you can have a look and make sure i am not giving you a virus or something.

Thanks for reading

Have a nice day,
dionsyran2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions