Coder Social home page Coder Social logo

Comments (9)

hsk-kr avatar hsk-kr commented on May 20, 2024

You should use

"use client";

on the top of the file you used a component NavLink.

from reactstrap.

naseef0 avatar naseef0 commented on May 20, 2024

You should use

"use client";

on the top of the file you used a component NavLink.

@hsk-kr I didn't use NavLink but instead installed reactstrap and re-ran the Next.js app. However, I encountered the error mentioned above during this process.

from reactstrap.

hsk-kr avatar hsk-kr commented on May 20, 2024

@naseef0 I installed reactstrap and ru-run the Next.js app. It seems working out well.

The following is my package.json.

{
  "name": "reactstrap-test-01",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "@types/node": "20.2.1",
    "@types/react": "18.2.6",
    "@types/react-dom": "18.2.4",
    "bootstrap": "^5.2.3",
    "eslint": "8.40.0",
    "eslint-config-next": "13.4.3",
    "next": "13.4.3",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "reactstrap": "^9.1.10",
    "typescript": "5.0.4"
  }
}

from reactstrap.

hetu06 avatar hetu06 commented on May 20, 2024

I added a "user client" page, however it didn't work because of an issue that showed me in the console how to fix it.

https://ibb.co/VYxHsYV

You may view the screenshot I uploaded here.

Let me know if there is a solution, please.

Many thanks

from reactstrap.

LowScarlet avatar LowScarlet commented on May 20, 2024

same here, idk why

from reactstrap.

naseef0 avatar naseef0 commented on May 20, 2024

Anu updates?

from reactstrap.

acocheo avatar acocheo commented on May 20, 2024

same here

from reactstrap.

dedikisme avatar dedikisme commented on May 20, 2024

add "use client" on components that call reactstrap element and the children will automatically render as client.
for example you call reactstrap components from layout.tsx then you should put "use client" on layout.tsx
I solved with this

https://nextjs.org/docs/app/building-your-application/rendering/client-components

from reactstrap.

jorgev259 avatar jorgev259 commented on May 20, 2024

Any updates on this

from reactstrap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.