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 · 0 comments

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.

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

1 participant