Skip to content

fix: Next.js error with redefine toJsonURLText#750

Open
slavabelaev wants to merge 1 commit into
jsonurl:mainfrom
slavabelaev:feature/fix-next-js-redefine-toJsonURLText-error
Open

fix: Next.js error with redefine toJsonURLText#750
slavabelaev wants to merge 1 commit into
jsonurl:mainfrom
slavabelaev:feature/fix-next-js-redefine-toJsonURLText-error

Conversation

@slavabelaev
Copy link
Copy Markdown

@slavabelaev slavabelaev commented Sep 13, 2025

Library not correct work in Next.js. This PR fix it

 ⨯ TypeError: Cannot redefine property: toJsonURLText
    at Object.defineProperty (<anonymous>)
    at __TURBOPACK__module__evaluation__ (src/common/utils/search-params.ts:3:1)
    at __TURBOPACK__module__evaluation__ (src/common/hooks/use-search-params-state.ts:5:1)
    at __TURBOPACK__module__evaluation__ (src/common/hooks/use-app-search-params.ts:3:1)
    at __TURBOPACK__module__evaluation__ (src/features/article/pages/articles-page.tsx:13:1)
> 1 | import JsonURL from "@jsonurl/jsonurl";

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

Successfully merging this pull request may close these issues.

1 participant