mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Fix import bugs
This commit is contained in:
parent
12ad506699
commit
fc30eaa743
@ -7,7 +7,7 @@ import { AsyncResult, Result } from "@stackframe/stack-shared/dist/utils/results
|
||||
import { suspendIfSsr } from "@stackframe/stack-shared/dist/utils/react";
|
||||
import { AsyncStore, Store } from "@stackframe/stack-shared/dist/utils/stores";
|
||||
import { ClientProjectJson, UserJson, ProjectJson, EmailConfigJson, DomainConfigJson, getProductionModeErrors, ProductionModeError, UserUpdateJson, TeamJson, PermissionDefinitionJson, PermissionDefinitionScopeJson, TeamMemberJson } from "@stackframe/stack-shared/dist/interface/clientInterface";
|
||||
import { isBrowserLike } from "@stackframe/stack-shared/src/utils/env";
|
||||
import { isBrowserLike } from "@stackframe/stack-shared/dist/utils/env";
|
||||
import { callOAuthCallback, signInWithOAuth } from "./auth";
|
||||
import * as NextNavigationUnscrambled from "next/navigation"; // import the entire module to get around some static compiler warnings emitted by Next.js in some cases
|
||||
import { ReadonlyJson } from "@stackframe/stack-shared/dist/utils/json";
|
||||
@ -24,7 +24,6 @@ import { isReactServer } from "@stackframe/stack-sc";
|
||||
import * as cookie from "cookie";
|
||||
import { InternalSession } from "@stackframe/stack-shared/dist/sessions";
|
||||
import { useTrigger } from "@stackframe/stack-shared/dist/hooks/use-trigger";
|
||||
import { pick } from "@stackframe/stack-shared/src/utils/objects";
|
||||
|
||||
|
||||
// NextNavigation.useRouter does not exist in react-server environments and some bundlers try to be helpful and throw a warning. Ignore the warning.
|
||||
|
||||
@ -5,7 +5,7 @@ import { StackClientApp, StackClientAppJson, stackAppInternalsSymbol } from "../
|
||||
import React from "react";
|
||||
import { UserJson } from "@stackframe/stack-shared";
|
||||
import { useStackApp } from "..";
|
||||
import { globalVar } from "@stackframe/stack-shared/src/utils/globals";
|
||||
import { globalVar } from "@stackframe/stack-shared/dist/utils/globals";
|
||||
|
||||
export const StackContext = React.createContext<null | {
|
||||
app: StackClientApp<true>,
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
import React, { useState } from 'react';
|
||||
import { useServerInsertedHTML } from 'next/navigation';
|
||||
import { ServerStyleSheet, StyleSheetManager } from 'styled-components';
|
||||
import { isBrowserLike } from '@stackframe/stack-shared/src/utils/env';
|
||||
import { isBrowserLike } from '@stackframe/stack-shared/dist/utils/env';
|
||||
|
||||
export default function StyledComponentsRegistry({
|
||||
children,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user