Skip to content

Error when using with React: Cannot read properties of undefined (reading 'setOptions') #20

@dclaze

Description

@dclaze

I am trying to use this library in an React app using Node 16 and getting the following error

Error

index.js:3 Uncaught TypeError: Cannot read properties of undefined (reading 'setOptions')
    at ./node_modules/jira2md/index.js (index.js:3:1)
    at options.factory (react refresh:6:1)
    at __webpack_require__ (bootstrap:24:1)
    at fn (hot module replacement:62:1)

Usage

import j2m from 'jira2md';
...
j2m.to_markdown(<some stuff here>);
...

System

% node -v
v16.19.0

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