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

Cannot read property 'width' of undefined #1

Open
tneupaney opened this issue Jul 10, 2019 · 2 comments
Open

Cannot read property 'width' of undefined #1

tneupaney opened this issue Jul 10, 2019 · 2 comments

Comments

@tneupaney
Copy link

tneupaney commented Jul 10, 2019

I got this error after I ran the first sample code you provided. What could be the cause?

(function (exports, require, module, __filename, __dirname) { 'use strict';var _promise=require('babel-runtime/core-js/promise');var _promise2=_interopRequireDefault(_promise);var _assign=require('babel-runtime/core-js/object/assign');var _assign2=_interopRequireDefault(_assign);var _regenerator=require('babel-runtime/regenerator');var _regenerator2=_interopRequireDefault(_regenerator);var _asyncToGenerator2=require('babel-runtime/helpers/asyncToGenerator');var _asyncToGenerator3=_interopRequireDefault(_asyncToGenerator2);var _getPrototypeOf=require('babel-runtime/core-js/object/get-prototype-of');var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=require('babel-runtime/helpers/classCallCheck');var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=require('babel-runtime/helpers/createClass');var _createClass3=_interopRequireDefault(_createClass2);var _possibleCons

TypeError: Cannot read property 'width' of undefined
    at ThisPersonDoesNotExist._callee4 (/Users/user/Desktop/graphApi/node_modules/thispersondoesnotexist-js/dist/index.js:1:4377)
    at ThisPersonDoesNotExist.<anonymous> (/Users/user/Desktop/graphApi/node_modules/babel-runtime/helpers/asyncToGenerator.js:13:18)
    at ThisPersonDoesNotExist.getImage (/Users/user/Desktop/graphApi/node_modules/thispersondoesnotexist-js/dist/index.js:1:5575)
    at Object.getImage (/Users/user/Desktop/graphApi/fakeUsers/index.js:5:6)
    at Module._compile (module.js:653:30)
    at Module._compile (/Users/user/Desktop/graphApi/node_modules/pirates/lib/index.js:99:24)
    at Module._extensions..js (module.js:664:10)
    at Object.newLoader [as .js] (/Users/user/Desktop/graphApi/node_modules/pirates/lib/index.js:104:7)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)

@bytesleo
Copy link
Owner

I'll check it out tonight :)

@Noahfreriksen
Copy link

I got this error aswell

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