You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On line 6 of pdf.js: DOMParser = require('./../node_modules/xmldom').DOMParser
Should be DOMParser = require('xmldom').DOMParser
'Cause now I'm getting the following error when using pdf2json:
Error: Cannot find module './../node_modules/xmldom'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/Some/great/path/node_modules/pdf2json/pdf.js:6:17)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
The text was updated successfully, but these errors were encountered:
You should never refer to a module using a path:
On line 6 of pdf.js:
DOMParser = require('./../node_modules/xmldom').DOMParser
Should be
DOMParser = require('xmldom').DOMParser
'Cause now I'm getting the following error when using pdf2json:
The text was updated successfully, but these errors were encountered: