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

Getting warning message: Prop className did not match with Next.js #16

Open
coolroman opened this issue Apr 17, 2024 · 3 comments
Open
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@coolroman
Copy link

Getting this warning in browser console:

Warning: Prop className did not match. Server: "tgui-6a12827a138e8827" Client: "tgui-6a12827a138e8827 tgui-865b921add8ee075"
at div
at eval (webpack-internal:///(app-pages-browser)/../node_modules/.pnpm/@xelene+tgui@2.1.1_@types+react-dom@18.2.25_@types+react@18.2.79_react-dom@18.2.0_react@18.2.0/node_modules/@xelene/tgui/dist/components/Service/AppRoot/AppRoot.js:33:21)

Minimal Next.js app with layout.tsx:

import "@xelene/tgui/dist/styles.css";

import { AppRoot, Placeholder } from "@xelene/tgui";

export default function Home() {
  console.log("Home");
  return (
    <AppRoot>
      <Placeholder header="Title" description="Description">
        <img
          alt="Telegram sticker"
          src="https://xelene.me/telegram.gif"
          style={{ display: "block", width: "144px", height: "144px" }}
        />
      </Placeholder>
    </AppRoot>
  );
}

Dependencies:

@tma.js/sdk 1.5.3
@tma.js/sdk-react 2.0.3
@xelene/tgui 2.1.1
next 14.2.1
react 18.2.0
react-dom 18.2.0

@evgenTraytyak
Copy link

the same error with the same environment

@Dimitreee Dimitreee added bug Something isn't working good first issue Good for newcomers labels May 10, 2024
@otzarri
Copy link

otzarri commented Jun 14, 2024

Same here with this configuration:

  "dependencies": {
    "@telegram-apps/telegram-ui": "^2.1.4",
    "@tma.js/sdk-react": "^2.2.4",
    "next": "14.2.4",
    "react": "^18",
    "react-dom": "^18"
  }

@wakeupwakeupwakeup
Copy link

Same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

5 participants