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

_marked.default #79

Closed
hypo-thesis opened this issue Oct 2, 2022 · 12 comments
Closed

_marked.default #79

hypo-thesis opened this issue Oct 2, 2022 · 12 comments
Assignees

Comments

@hypo-thesis
Copy link

There is a huge type error here upon installing and using a simple <Quiz quiz={quiz} />

What to do? How to get it working?

@wingkwong
Copy link
Owner

I don't see that error. Mind to share more how you install or the version?

@hypo-thesis
Copy link
Author

I don't see that error. Mind to share more how you install or the version?

https://codesandbox.io/s/green-dawn-tjgc09?file=/src/App.js:5290-5311

Version 0.4.0

@realisticattorney
Copy link

did you fix it?

@wingkwong
Copy link
Owner

wingkwong commented Oct 6, 2022

@realisticattorney Not yet. Haven't got time to look into this issue yet. any PR to fix is welcome.

@justoverclockl
Copy link

same error

@kanivets
Copy link

kanivets commented Oct 24, 2022

Same here.

Works fine if pulling code from https://github.com/wingkwong/react-quiz-component/tree/develop/src/lib

Error happens once installing module via yarn.

@mrruby
Copy link

mrruby commented Oct 25, 2022

Any update about this, same issue with gatsby and yarn

@Gr33nLight
Copy link

I can check on this

@Gr33nLight
Copy link

Apparently it has to do with a compatibility issue with the version of the marked module, that doesn't seem to support cjs anymore, especially if used with webpack. Here they talk about version 4.0.0 onwards:
markedjs/marked#2265

Some ugly fixes are available but a clean solution is not available yet it seems..

@wingkwong
Copy link
Owner

Please try on 0.5.0

@SaadBazaz
Copy link

Same here.

Works fine if pulling code from https://github.com/wingkwong/react-quiz-component/tree/develop/src/lib

Error happens once installing module via yarn.

Still facing this issue. However, I did the above (Downloaded the code as zip, extracted it to my project's components folder, and imported directly)... and voila. It works. Good temporary solution.

@wingkwong wingkwong reopened this Jan 5, 2023
@wingkwong wingkwong mentioned this issue Jan 6, 2023
@wingkwong
Copy link
Owner

fixed in 0.5.1

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

8 participants