Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dclaze opened this issue Feb 10, 2023 · 2 comments

Comments

@dclaze
Copy link

dclaze commented Feb 10, 2023

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
@damahala
Copy link

damahala commented May 4, 2023

same issue but still no solution.

@kirill578
Copy link

kirill578 commented Jan 8, 2024

I started seeing this exact issue after upgrading react-scripts from version 4 to 5 (Also upgrading webpack 4 to 5). issue seem to be related to marked not being bundled correctly.
image

I ended up copy pasting this library inline as I couldn't figure out a way for it to work as is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants