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

Card Group - Cannot access 'ni' before initialization #4481

Open
adam-bentley opened this issue May 18, 2024 · 0 comments
Open

Card Group - Cannot access 'ni' before initialization #4481

adam-bentley opened this issue May 18, 2024 · 0 comments

Comments

@adam-bentley
Copy link

Bug Report

The npm run build command throws an error when a next js application is built that uses the card group component. The error message is ReferenceError: Cannot access '{random letter(s)}' before initialization.

Steps

npx create-next-app@latest nextjs-blog --use-npm
npm install semantic-ui-react semantic-ui-css 

page.tsx

"use client";

import 'semantic-ui-css/semantic.min.css'
import { CardGroup } from "semantic-ui-react";

export default function Home() {
  return (
    <CardGroup>

    </CardGroup>
  );
}
npm run build

Expected Result

The app to successfully build.

Actual Result

`Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error

ReferenceError: Cannot access 'ni' before initialization
at 4880 (CardGroupTest\nextjs-blog.next\server\app\page.js:12:43473)
at Object.t [as require] (CardGroupTest\nextjs-blog.next\server\webpack-runtime.js:1:127)
at require (CardGroupTest\nextjs-blog\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:16:18365)
at I (CardGroupTest\nextjs-blog\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:94362)
at CardGroupTest\nextjs-blog\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:96668
at F._fromJSON (CardGroupTest\nextjs-blog\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:97106)
at JSON.parse ()
at O (CardGroupTest\nextjs-blog\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:94083)
at t (CardGroupTest\nextjs-blog\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:100582)
at runNextTicks (node:internal/process/task_queues:60:5)
✓ Generating static pages (5/5)`

Version

semantic-ui-css: ^2.5.0,
semantic-ui-react: ^2.1.5

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

No branches or pull requests

1 participant