Skip to content

Commit

Permalink
switch from blitz log to console - due to import error.
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhsuresh committed Nov 3, 2022
1 parent 75922cb commit b15dfa6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages/blitz-rpc/src/data-client/react-query.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
UseMutationOptions,
UseMutationResult,
} from "@tanstack/react-query"
import {isServer, FirstParam, PromiseReturnType, AsyncFunc, log} from "blitz"
import {isServer, FirstParam, PromiseReturnType, AsyncFunc} from "blitz"

import {
emptyQueryFn,
Expand Down Expand Up @@ -89,7 +89,7 @@ export function useQuery<
}, console.error)
} catch (e: any) {
if (e.code === "MODULE_NOT_FOUND") {
log.error(
console.error(
"Blitz Auth is enabled but @blitzjs/auth is not installed. Please check if @blitzjs/auth is in your dependencies",
)
}
Expand Down Expand Up @@ -188,7 +188,7 @@ export function usePaginatedQuery<
}, console.error)
} catch (e: any) {
if (e.code === "MODULE_NOT_FOUND") {
log.error(
console.error(
"Blitz Auth is enabled but @blitzjs/auth is not installed. Please check if @blitzjs/auth is in your dependencies",
)
}
Expand Down Expand Up @@ -297,7 +297,7 @@ export function useInfiniteQuery<
}, console.error)
} catch (e: any) {
if (e.code === "MODULE_NOT_FOUND") {
log.error(
console.error(
"Blitz Auth is enabled but @blitzjs/auth is not installed. Please check if @blitzjs/auth is in your dependencies",
)
}
Expand Down
4 changes: 2 additions & 2 deletions packages/blitz-rpc/src/data-client/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {normalizePathTrailingSlash} from "next/dist/client/normalize-trailing-sl
import {addBasePath} from "next/dist/client/add-base-path"
import {deserialize, serialize} from "superjson"
import {SuperJSONResult} from "superjson/dist/types"
import {CSRFTokenMismatchError, isServer, log} from "blitz"
import {CSRFTokenMismatchError, isServer} from "blitz"
import {getQueryKeyFromUrlAndParams, getQueryClient} from "./react-query-utils"
import {stringify} from "superjson"

Expand Down Expand Up @@ -157,7 +157,7 @@ export function __internal_buildRpcClient({
}
} catch (e: any) {
if (e.code === "MODULE_NOT_FOUND") {
log.error(
console.error(
"Blitz Auth is enabled but @blitzjs/auth is not installed. Please check if @blitzjs/auth is in your dependencies",
)
}
Expand Down

0 comments on commit b15dfa6

Please sign in to comment.