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

added URL import #16

Merged
merged 1 commit into from
Oct 29, 2019
Merged

added URL import #16

merged 1 commit into from
Oct 29, 2019

Conversation

dills122
Copy link
Contributor

I was experiencing an error when running this on my linux system saying URL is not defined.

Error:

/home/dsteele/repos/MTG-Card-Analyzer/node_modules/image-hash/lib/imageHash.js:75
            const url = new URL(res.request.uri.href);
                        ^

ReferenceError: URL is not defined
    at Request.handleRequest [as _callback] (/home/dsteele/repos/MTG-Card-Analyzer/node_modules/image-hash/lib/imageHash.js:75:25)
    at Request.self.callback (/home/dsteele/repos/MTG-Card-Analyzer/node_modules/request/request.js:185:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/home/dsteele/repos/MTG-Card-Analyzer/node_modules/request/request.js:1161:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at IncomingMessage.<anonymous> (/home/dsteele/repos/MTG-Card-Analyzer/node_modules/request/request.js:1083:12)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)

@danm danm merged commit 05df46f into danm:master Oct 29, 2019
@danm
Copy link
Owner

danm commented Oct 29, 2019

thanks @dills122 !!

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

Successfully merging this pull request may close these issues.

2 participants