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

rich-text-from-markdown crashes next app with "ReferenceError: wrap is not defined" in production #460

Open
1Ghasthunter1 opened this issue Apr 29, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@1Ghasthunter1
Copy link

Working with NextJS 13.0.2 and @contentful/rich-text-from-markdown. Things work all good in dev with npm run dev, but when production comes along and richTextFromMarkdown is not even called, just incorporated in a function in some way, the app seems to crash on client side on that specific page in which richTextFromMarkdown was initialized in.

The error specifically thrown in the browser is Uncaught (in promise) ReferenceError: wrap is not defined. I wish I could provide more about what's going wrong here, but there's no way to really debug this effectively as it doesn't happen in dev mode.

To sum up, this error only comes up whenever richTextFromMarkdown is just initialized somewhere, not even called, and only in prod environments.

@z0al
Copy link
Member

z0al commented Aug 30, 2024

Hey @1Ghasthunter1 , sorry for the delay here. Is this still happening?

If yes, could you please provide the full error stack trace to help narrow down the cause?

@z0al z0al added the bug Something isn't working label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants