Closed Kingkon963 closed 2 years ago
This issue got resolved after installing all of the following types. But I still couldn't figure out why that happened
@types/accepts
@types/body-parser
@types/bson
@types/content-disposition
@types/cookies
@types/formidable
@types/fs-capacitor
@types/glob
@types/hoist-non-react-statics
@types/http-assert
@types/http-errors
@types/invariant
@types/json-schema
@types/koa
@types/koa-bodyparser
@types/koa__cors
@types/lodash
@types/long
@types/mongodb
@types/node-fetch
@types/react-redux
@types/ws
I never get this error before, can you try with this exact command? without the --typescript
flag
npx create-next-app -e https://github.com/theodorusclarence/ts-nextjs-tailwind-starter project-name
is there any update? @Kingkon963
Hi @theodorusclarence, Sorry for being late and thank you for your reply.
I never get this error before, can you try with this exact command? without the
--typescript
flag
npx create-next-app -e https://github.com/theodorusclarence/ts-nextjs-tailwind-starter project-name
I have just tried this and the error is still there. I neither faced this error before the release of Tailwindcss v3
I got rid of this annoying error after doing the following,
yarn add -D @types/node
"types": ["node"]
in the compilerOptions of the tsconfig.json file
I'm getting this error whenever I try to add Tailwindcss to my Nextjs project initiated with "create-next-app --typescript". Therefore I wanted to try your template but now having the exact same issue.
I have tried installing types for 'accepts' using "yarn add @types/accepts" but then it shows the same error for "body-parser" and keeps going on and on and telling me to add types for different packages which are unknown to me.
Do you know why is this happening?