Coder Social home page Coder Social logo

Comments (6)

webexpe13 avatar webexpe13 commented on August 20, 2024 1

from blog-template-using-nextjs-typescript-tailwindcss.

webexpe13 avatar webexpe13 commented on August 20, 2024

from blog-template-using-nextjs-typescript-tailwindcss.

srinivasmaram2025 avatar srinivasmaram2025 commented on August 20, 2024

Blog application using nextjs and type script

I want to Use Your Template for My Blog application, How to generate production folder to host on live.
..

from blog-template-using-nextjs-typescript-tailwindcss.

srinivasmaram2025 avatar srinivasmaram2025 commented on August 20, 2024

Thanks...

from blog-template-using-nextjs-typescript-tailwindcss.

srinivasmaram2025 avatar srinivasmaram2025 commented on August 20, 2024

D:\Full Stack\Pro Mern Stack\NextJS\blog-template-using-nextjs-typescript-tailwindcss>npm run out

[email protected] out
next build && next export

info - Checking validity of types

Failed to compile.

./src/components/Navbar/Centered.tsx
120:13 Error: Missing "key" prop for element in iterator react/jsx-key

./src/components/Navbar/NavSideBar.tsx
57:33 Error: Missing "key" prop for element in iterator react/jsx-key

./src/components/Navbar/SimpleNavbar.tsx
50:17 Error: Missing "key" prop for element in iterator react/jsx-key

./src/components/Slider/index.tsx
26:25 Warning: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images. jsx-a11y/alt-text

info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules

It Shows error like this, How can i Debug.

from blog-template-using-nextjs-typescript-tailwindcss.

webexpe13 avatar webexpe13 commented on August 20, 2024

Hi,

For slider alt test warning just add an alt="" to image tag.
./src/components/Slider/index.tsx
26:25 Warning: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images. jsx-a11y/alt-text
example: <img src='' alt='some alt text' ... />

For the rest 3 bugs
./src/components/Navbar/Centered.tsx
./src/components/Navbar/NavSideBar.tsx
./src/components/Navbar/SimpleNavbar.tsx

you might have run a loop in jsx whithout giving a key to the element. in react we need to pass a key if we are rendering thru a loop.

eample:
{ array.map(each => ( <div key={each.id}> ..... </div> )) }

please check your code and let me know if you need any more help.

from blog-template-using-nextjs-typescript-tailwindcss.

Related Issues (1)

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.