Hi all,
I have tried and read many posts… but did not manage to have this loaded.
I have loaded this
npm i whatsapp-web.js
after did Yarn add whatsapp-web.js
Now i can see the directory under node_modules
But because i want to have it on my custom_app i have just copied the Directory to app/custom_app/public/js
Now i have added on hooks.py
app_include_js = [“assets/js/whatsapp-web.js”]
Now when added on build.json
“js/whatsapp-web.js”: [
“public/js/whatsapp-web.js”
]
Now the way it is when start bench returns errors when Building whatsapp-web.js
custom_app/public/js/whatsapp-web.js/package.json
16:59:50 watch.1 | SyntaxError: Unexpected token (2:9)
16:59:50 watch.1 | 1 : {
16:59:50 watch.1 | 2 : “_from”: “whatsapp-web.js”,
16:59:50 watch.1 | ^
16:59:50 watch.1 | 1 : {
16:59:50 watch.1 | 2 : “_from”: “whatsapp-web.js”,
16:59:50 watch.1 | ^
Anyone to give the right path so i can have this loaded ?
Thanks in advance