Errors with StyleClass

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
iany
Posts: 6
Joined: 25 Nov 2022, 11:41

02 Mar 2023, 14:18

I've been able to get the package to run by installing an older version of Node.js, however after copying the code for a header block I now see an error relating to the StyleClass:

Unhandled Runtime Error
ReferenceError: btnRef10 is not defined

Screenshot: https://d.pr/i/tyvSts

I'm running a Next.js application and have followed the instructions provided and imported StyleClass in my component:

Code: Select all

import { StyleClass } from 'primereact/styleclass';
I've also installed PrimeFlex and added the stylesheet to `_app.js`.

How can I resolve this error?

habubey
Posts: 89
Joined: 24 Aug 2022, 13:17

08 Mar 2023, 15:23

Hi there,

Actually, it works well for us. As I understand you have used Navbar which is "Hover Borders", haven't you? I have attached the screenshot.

Attachment: https://imgur.com/oXDAzNk

It appears that the issue may be related to the code you have used. If you could provide a reproducible example through a platform such as CodeSandbox, we would be more than happy to help find a solution for you.
Bugra Beyduz
PrimeReact Core Developer
Github profile: https://github.com/habubey

Post Reply

Return to “PrimeBlocks for PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest