Datepicker moment

I am unable to run datepicker moment on our server livechat. I am following this github for code.

Help me

Hi @trent,

It would be best if you opened an issue on GitHub if you haven’t done it yet (cause our developers saw the same issue on GitHub already).

However, if the issue is not yours, please provide us with more details, like where you failed and what the problem is exactly.

I installed vue for datepicker. As I run command npm run build so it throw error. For vue I run command it also throw error

@livechat/webview-datepicker-extension@0.1.0 build /var/www/html/staging/moments-apps-examples-master/examples/da tepicker
vue-cli-service build

sh: 1: vue-cli-service: not found
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! @livechat/webview-datepicker-extension@0.1.0 build: vue-cli-service build
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the @livechat/webview-datepicker-extension@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! /home/ubuntu/.npm/_logs/2019-11-05T10_40_55_007Z-debug.log
These are some error.
My question is …how to integrate this datepicker example with current running livechat. Please explain

Hi @trent,

I talked with our developers and they asked me to provide you with the installation instructions:

git clone && moments-apps-examples && npm install && npm run build

After running this, the ./examples/datepicker/dist/ directory should be created and you should be able to serve it from your server.

I hope it helps!

As you said result show in ./examples/datepicker/dist/ this directory. But how I can integrate this date picker with running live chat. I am going to share screenshot where I want to show the date picker icon like other icon( like calendly icon is here, in same way I want date picker icon and after click on it date picker pop up open and I can send this on chat )

Hi @trent,
Our developers provided the answer for your question on GitHub in the thread you created.

@Daria Thank you for your reply. It is very helpful for me.

1 Like