Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It gives an error when i import the library #14

Open
umutbozdag opened this issue May 27, 2020 · 3 comments
Open

It gives an error when i import the library #14

umutbozdag opened this issue May 27, 2020 · 3 comments

Comments

@umutbozdag
Copy link

As the title says, it gives an error when import the library like this import mergeImg from "merge-img";

The error is: index.js?6969:22 Uncaught TypeError: Cannot read property 'hasOwnProperty' of undefined at Object.eval (index.js?6969:22) at eval (index.js:2337) at Object../node_modules/jimp/index.js (chunk-vendors.js:4028) at __webpack_require__ (app.js:849) at fn (app.js:151) at eval (index.js?cafb:15) at Object../node_modules/merge-img/lib/index.js (chunk-vendors.js:4208) at __webpack_require__ (app.js:849) at fn (app.js:151) at eval (cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/App.vue?vue&type=script&lang=js&:8)

@talkl
Copy link

talkl commented Aug 9, 2020

import * as mergeImg from "merge-img"

@umutbozdag
Copy link
Author

import * as mergeImg from "merge-img"

I tried that in a Vue SFC and it's still gives this error. But when i try to use it in node it works as expected. Is it because of Webpack? Do you have any idea? @talkl

@PrinceMagbanua
Copy link

Same error here, when i do either import mergeImg from "merge-img" or import * as mergeImg from "merge-img". currently using Vue JS with Quasar Framework.

TypeError: Cannot read property 'hasOwnProperty' of undefined at Object.eval (index.js?6668:22) at eval (index.js:2337) at Object../node_modules/merge-img/node_modules/jimp/index.js (vendor.js:5961) at __webpack_require__ (app.js:854) at fn (app.js:151) at eval (index.js?276b:15) at Object../node_modules/merge-img/lib/index.js (vendor.js:5881) at __webpack_require__ (app.js:854) at fn (app.js:151) at eval (index.js?!./node_modules/@quasar/app/lib/webpack/loader.auto-import-client.js?kebab!./node_modules/vue-loader/lib/index.js?!./src/pages/prophecy/details.vue?vue&type=script&lang=js&:13)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants