timb-103 / nuxt-emoji

An Emoji picker component for your Nuxt 3 project 😃
33 stars 2 forks source link

vercel-depplyment-error #4

Open lewismunene020 opened 7 months ago

lewismunene020 commented 7 months ago

I have worked with this package but am getting issues when deploying on vercel its working prettty well in my machine but on production its bring this error:

error /vercel/path0/frontend/node_modules/nuxt-emoji: Command failed.
Exit code: 127
Command: nuxt prepare .playground
Arguments: 
Directory: /vercel/path0/frontend/node_modules/nuxt-emoji
Output:
/bin/sh: nuxt: command not found
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Error: Command "yarn install" exited with 127

Please help me fix it

titusdecali commented 6 months ago

Same issue here (using pnpm): SHOT 11 18 19@2x

Only thing that works is to remove it entirely from package.json.

EDIT: Removing pnpm-lock.yaml and pushing code back to github to be rebuilt by Vercel seems to have fixed the issue for me. Not sure of the root cause.

lewismunene020 commented 6 months ago

i actually tried that and it didn't work so i looked for another package

titusdecali commented 3 months ago

@timb-103 Any idea on a fix for this? I spent quite a lot of time styling things and getting it just the way I wanted and this error is preventing me from using it in production (works fine in localhost). I'd really appreciate a fix and would be willing to send you some support if you were willing to root out the cause.

timb-103 commented 3 months ago

@timb-103 Any idea on a fix for this? I spent quite a lot of time styling things and getting it just the way I wanted and this error is preventing me from using it in production (works fine in localhost). I'd really appreciate a fix and would be willing to send you some support if you were willing to root out the cause.

@titusdecali Have just tried to move nuxt from dev dependencies to dependencies as I'm assuming that was the issue. Can you update the version to most recent and try again then let me know if it works?

titusdecali commented 1 month ago

@timb-103 Sorry for seeing this late. I just tested and it is in fact now working! I suggest removing the -D flag as shown in the nuxt-emoji README