Skip to content

Commit

Permalink
fix(next-drupal): used named Jsona export
Browse files Browse the repository at this point in the history
Prevents "TypeError: Jsona is not a constructor" error
  • Loading branch information
JohnAlbin committed Nov 19, 2023
1 parent f1db23c commit e681354
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/next-drupal/src/client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Jsona from "jsona"
import { Jsona } from "jsona"
import { stringify } from "qs"
import { JsonApiErrors } from "./jsonapi-errors"
import { logger as defaultLogger } from "./logger"
Expand Down
2 changes: 1 addition & 1 deletion packages/next-drupal/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Jsona from "jsona"
import { Jsona } from "jsona"
import { stringify } from "qs"
import { getAccessToken } from "./get-access-token"
import type { GetStaticPropsContext } from "next"
Expand Down

0 comments on commit e681354

Please sign in to comment.