Comments (6)
from blog-template-using-nextjs-typescript-tailwindcss.
from blog-template-using-nextjs-typescript-tailwindcss.
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.
Thanks...
from blog-template-using-nextjs-typescript-tailwindcss.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog-template-using-nextjs-typescript-tailwindcss.