Cloudinary JS not working with Vue (Vuepress)
Hi!
I installed the cloudinary-core JS library, and I import it in my Vue component:
import cloudinary from 'cloudinary-core';
const cl = new cloudinary.Cloudinary({ cloud_name: '***', secure: true });
But then I get the following error:
index.js?b639:43 Uncaught ReferenceError: global is not defined
at eval (index.js?b639:43)
at Object../node_modules/buffer/index.js (app.js:1655)
at __webpack_require__ (app.js:767)
at fn (app.js:130)
at eval (cloudinary-core.js:6352)
at Object../node_modules/cloudinary-core/cloudinary-core.js (app.js:1702)
at __webpack_require__ (app.js:767)
at fn (app.js:130)
at eval (enhanceApp.js:12)
at Module../src/.vuepress/enhanceApp.js (app.js:7357)
Any ideas of how to make this work?
Thanks!
Daniel
0
-
Can you try importing Cloudinary as the following?
0
Post is closed for comments.
Comments
1 comment