NextJs deploy on vercel - deployment

I get the following errors while deploying my nextjs app on vercel. However my app runs all right with no errors in localhost but while deploying it is giving me the errors attached in the imagesenter image description here
This is my package.json fileenter image description here

you have error on [slug].js file
befor deploy on vercel run this commands and check the app run on your compouter or not
yarn run build
yarn start

fix this issue in pizza/[slug] file :
TypeError: Cannot read properties of undefined (reading 'image')
and deploy it again

Related

Flutter Web and multiple deployment error

I am trying to set up a production/development of a Flutter web app for Firebase. I am able to deploy to the first one I configured (production) but not to the second (development). I am getting this error:
=== Deploying to 'my-app-dev'...
i deploying hosting i hosting[my-app-dev]: beginning deploy... i
hosting[my-app-dev]: found 27 files in build/web ⠋ hosting: uploading
new files [3/21] (14%) Error: Task
1c5e4be41a8a2901d8c9ae4edb5c2bd26c5c4d0564d732a3ce2bef7c6c27bcb0
failed: retries exhausted after 6 attempts, with error: The "path"
argument must be of type string. Received undefined ⠸ hosting:
uploading new files [4/21] (19%)
I am running the following commands:
firebase use my-app-dev
flutterfire configure --project=my-app-dev
flutter build web
firebase deploy
Note: if I use my-app-prod instead it works perfectly.
What am I doing wrong?
I faced the same problem and I solved it with the next two steps:
remove the .firebase folder from the root folder of your project
try to deploy your project again with firebase deploy

Error with Spawned command: npminstall

I am trying to run a sample application from
https://ionicframework.com/getting-started/.
But I am getting the error - there was an error with the spawned process: npminstall every time I try to run the application. Any help is highly appreciated.
For me it was only to upgrade to new version of npm
npm install -g npm
Spawned command error comes when you try to start a new ionic or cordova app, that gets downloaded from git. This error occurs because your network proxy blocks download a new blank app from git.
To avoid such kind of error try removing the proxies.
1. If you are in a company using their proxy its not possible to do that, so use your own data to do that.
Try downloading a blank app from git using your own data, don't use company network which has proxy enabled.
It will download but while installing the app you will get error like:
Error with start undefined.
Error with spawned command npminstall.
Don't worry a folder will be downloded,
Go to cmd and go inside that app directory and run ionic serve
It will give error like ionic.config.json file didn't find.
create a file with the name ionic.config.json inside the app file.
inside that file paste the following:
{ "name": "your app name", "app_id": "", "v2": true, "typescript": true }
now try running the command ionic serve
your app will run.
I had the similar problem but it worked for me.
install npm globally
npm install -g npm
create a app without installing its packages
ionic start app --v2 --skip-npm
seems ok till now?then
cd app
install packages
npm install --save
done!try to start your ionic app
ionic serve

Buildpacks error

I am running an application at IBM Bluemix DevOps and while deploying I am getting this error:
App staging failed in the buildpack compile phase.
On checking logs I found this:
How do I get rid of this problem?
You're trying to use a node npm module which you might not have declared as a dependency. Add gulp to your package.json as show in in the car-dashboard sample you are referencing.

ionic 2 error when start new project

E:\SocialLoginDemo>ionic start HelloWorld12 blank --v2
Creating Ionic app in folder E:\SocialLoginDemo\HelloWorld12 based on blank project
Installing npm packages...
Error with start undefined
Error Initializing app: There was an error with the spawned command: npminstall
There was an error with the spawned command: npminstall
Caught exception:
undefined
Mind letting us know? https://github.com/driftyco/ionic-cli/issues
my version information
Your system information:
You have been opted out of telemetry. To change this, run: cordova
telemetry on.
6.3.1
Ionic CLI Version:2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS: Node Version:v4.6.0
There was some problem in spawned command "npminstall" but now they have fixed this issue. Mostly it should work now and if not kindly share screenshot of errors being thrown.

Deployment in Meego crashing for large Deb file

I recently update my QtSdk to 1.2 and after that, I am unable to deploy a debian file of more then 6 mb. It gives me the following error:
16:32:02: Preparing SFTP connection...
16:32:02: Starting upload...
16:32:03: Failed to upload package: Failure
16:32:03: Deploy step failed.
Error while building project Animal101SymbianMeegov1 (target: Harmattan)
When executing build step 'Deploy Debian package via SFTP upload'
Has anyone run across this problem?
The workaround I use to deploy is to create a link in /tmp/.deb pointing to /var/tmp/.deb and the run the deploy step in QtCreator.