Skip to main content

All Questions

0 votes
1 answer
39 views

Import Error: react-bootstrap/Table Not Found in NextJS

I've tried every possible solution—even with ChatGPT's help—but I'm still stuck. I have a container that holds two applications: a frontend app developed in NextJS (React) and a PostgreSQL database. ...
Andrewz89's user avatar
0 votes
1 answer
117 views

Hydration failure in Next.js while using React Bootstrap Form Component

I am implementing a simple login component using a Form component from react-bootstrap. I keep running into the error: "Error: Hydration failed because the initial UI does not match what was ...
Phil Mckavity's user avatar
0 votes
1 answer
37 views

Bootstrap Modal causes useEffect({...}, []) to trigger again

When using the Bootstrap <Modal /> component, when I do callbacks to the parent component, my entrie page rerenders, and triggers my useEffect({...}, [])-Hook, which should only be called once, ...
Clebo Sevic's user avatar
0 votes
0 answers
56 views

React Bootstrap - display 2.5 items visible at a time

I am using React Bootstrap's Carousel component in my NextJS project. Right now everything works except the fact that in mobile, am displaying only one slide at a time. But i am trying to improve the ...
Akash's user avatar
  • 5
1 vote
1 answer
146 views

type is invalid (react-bootstrap Form)

Attempting to build a form using exact sample code from react-bootstrap documentation: https://react-bootstrap.github.io/docs/forms/form-control import Form from 'react-bootstrap/Form'; export ...
Yevgeniy's user avatar
  • 998
2 votes
2 answers
2k views

Using react-bootstrap doesn't work, unsupported server component error

My problem is I keep getting a Unsupported Server Component Error while using react-bootstrap with typescript. I've given you the contents of my page.tsx file, my layout.tsx file, and the error itself ...
rrcoder0167's user avatar
0 votes
1 answer
356 views

NextJS App Router with typescript will either let me use react-bootstrap or my global.scss file

I've tried reading through documentation for App Router and React-Bootstrap package and when I try to import react bootstrap it completely removes my global.scss file rulesets, but when I remove the ...
Tate's user avatar
  • 31
4 votes
2 answers
2k views

Server components: Can we use webpack to add "use client" in modules from compponent library?

React server components make us use the "use client" directive on top of files. This basically breaks react components library (like ReactBootstrap and PrimeReact) and makes us create ...
Vitor Figueredo Marques's user avatar
0 votes
1 answer
751 views

Can't use React tooltips in another Component

I was trying to make a separated component for React Tooltips so I can use it again in my project, But It seems to not work and gives me an error once the App reloads. The Error I Already install ...
Viper's user avatar
  • 41
2 votes
1 answer
328 views

Error: Hydration failed because the initial UI does not match what was rendered on the server when using Link element

I just got started learning Next.js, and I came across a component called <Link/> for routing between different pages, but I use the react-bootstrap library for the navbar; this library provides ...
Mustafa's user avatar
  • 336
1 vote
1 answer
105 views

Why am I getting the error message about each list item should get a unique key when using the react-bootstrap with Nextjs? [duplicate]

Here is the current setup of the file right now below. You will see that my file does indeed have a key to each child component but its still flagging it and I think its more internal issues that I am ...
Micah Johnson's user avatar
1 vote
1 answer
404 views

NextJS - Close Modal Component from Child inner Component

I am using the Modal Component from React Bootstrap Everything works as expected, except from the fact that I cannot figure out how to auto close the Modal after a successful submit. I know I am able ...
Fjott's user avatar
  • 1,137
1 vote
2 answers
2k views

Cannot use import statement outside a module in using react-bootstrap in nextjs

I've been trying to work with next.js right now and when I imported a navbar component to my _app.tsx and run the project, it would give me an error of saying "Cannot use import statement outside ...
John Roice M. Aldeza's user avatar
1 vote
2 answers
153 views

Attempt to persist React-Bootstrap Accordion state on localStorage not working

My project is on Next.js. So, I am trying to save the last Accordion state to localStorage, so that when I reload the page, the previous loaded Accordion will again stay open. But even though I am ...
Anik Sarker's user avatar
2 votes
1 answer
2k views

Avoid Hydration error in Next Js with context values

I am constantly getting Hydration error with Next Js when I log in with a user, update a context value and re render some components. Specifically my NavBar component. I am using react-bootstrap to ...
Simon Capriles's user avatar

15 30 50 per page