mohannadofficial / code-stacker-nextjs

🌟 Code Stacker: A Stack Overflow clone powered by Next.js, contains many features : 🗣 AI-Generated Answers, 🔐 Auth Using Clerk, 🏆 Top Questions & Popular Tags, 🏷️ Tags, 🎖 Badge & Reputation,📱 Mobile Responsiveness,and more...
https://code-stacker.mohnd-code.com/
MIT License
4 stars 3 forks source link

Error in vercel #1

Open simontalbot opened 1 month ago

simontalbot commented 1 month ago

⨯ ESLint: Failed to load plugin 'tailwindcss' declared in '.eslintrc.json': Cannot find module 'eslint-plugin-tailwindcss' Require stack: - /vercel/path0/placeholder.js Referenced from: /vercel/path0/.eslintrc.json

mohannadofficial commented 1 month ago

the problem happen only in the vercel when you try to deployment it ? or also in you local ? please provide more information or photo for the problem so i can help you

try this in your local npm install eslint-plugin-tailwindcss --save-dev

simontalbot commented 1 month ago

Thank you, its seems to have resolved that issue, a coupe more tho (sorry)

  1. building in vercel is still throwing an error MongoDB Connection Failed MongoParseError: Protocol and host list are required in "mongodb+srv://xxxx:xxxx@@cluster0.p3nt5hl.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0" https://test-y189-j061919qz-simontalbots-projects.vercel.app/ This connection string works locally

  2. I am also trying to create on 'out' folder so that i can host this else where.
    i have updated next.config output: "export", Error: Page "/sign-in/[[...sign-in]]" is missing "generateStaticParams()" so it cannot be used with "output: export" config. I have added in export function generateStaticParams() { return [{ id: "test" }]; } into both sign-in and sign-out, but unfortunatly, the error is still thrown image

Thank you

simontalbot commented 1 month ago

I have also spent the evening trying to deploy to azure web app and also receiving :-

Run actions/upload-artifact@v4 With the provided path, there will be 31065 files uploaded Artifact name is valid! Root directory input is valid! Beginning upload of artifact content to blob storage node:events:497 throw er; // Unhandled 'error' event ^

Error: EMFILE: too many open files, open 'D:\a\test\test\node_modules\concat-map\package.json' Emitted 'error' event on ReadStream instance at: at emitErrorNT (node:internal/streams/destroy:169:8) at emitErrorCloseNT (node:internal/streams/destroy:128:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { errno: -4066, code: 'EMFILE', syscall: 'open', path: 'D:\a\test\test\node_modules\concat-map\package.json' }