Skip to main content

Terminal command: 

mapps code:push --client-side -i <identifier - copied from developer portal>

>12:10:13.010] INFO: Deploying build to CDN...
(node:40741) DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
✔️ Build asset to deploy
✖️ An error has occurred, use the errorId
  field to look up the details in the logs

 

  • This error happens with every attempt to upload a client-side app
    • I’ve been successful with a server-side app using mapps code:push
  • It isn’t clear where to look up the errorId
  • Current workaround is manually uploading a zip file to deploy the app

I’ve never seen this error message either. 

Off the top of my head, here are two culprits: 

  1. What is the structure of the asset you’re trying to upload? Make sure you’re executing the function from inside a folder that has an index.html file in it. 
  2. Perhaps node version trouble? Use nvm to install node 20 and then try switching your environment to that (once installed, it’s as simple as nvm use 20)

If those don’t work, please share some steps to reproduce and I’ll try on my side! 


Hi ​@dipro thanks for your response!

  • I’m using the "Quickstart React" example Monday app.
  • I’m running mapps code:push from the root directory of that repo

 

Do I need to first run ‘npm build’ and then move into the build folder and run ‘mapps code:push’?


Yes indeed!

npm run build

cd build

mapps code:push --client-side

 

I made a video with the whole process, if you want to see the steps in action - 

 


Reply