Skip to content

TypeError: JSON.parse(...).map is not a function #162

Description

@nils-hoyer

yarn add react-intl-po

yarn rip json2pot 'src/translations/i18next.json' \ -o ./master.pot

i18next.json
{ "a": "b", "c": "d" }
readAllMessageAsObjectSync() is returning map is not a function on valid srcPatterns

When debugged I saw JSON.parse(_fs2.default.readFileSync(filename, 'utf8') is returning valid JSON Object. How can you use map on Object in line 41?

side note: I get the same result with node_modules/.bin/react-intl-po ...

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