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 properties of undefined (reading 'pdfjsLib') #48

Open
DarthNerdus opened this issue Oct 20, 2024 · 0 comments
Open

Cannot read properties of undefined (reading 'pdfjsLib') #48

DarthNerdus opened this issue Oct 20, 2024 · 0 comments

Comments

@DarthNerdus
Copy link

I updated today to v1.3.7 when prompted (Windows OS). I actually had to uninstall and reinstall, the update process kept saying Smart Connect was running when it wasn't and wouldn't complete.

With the reinstall, I provided API Keys to use openai for PDF & image content.

When reloading sources, a repeated error appears and PDFs are not embedded. Two relevant instances:

_sc.mjs:89876 Connected
_sc.mjs:105781 update-main-status Object v1.3.7
_sc.mjs:91391 Loading smart_sources:  222 items
_sc.mjs:91400 Loaded smart_sources in 279ms
_sc.mjs:92733 import_queue 166
_sc.mjs:92179 TypeError: Cannot read properties of undefined (reading 'pdfjsLib')
    at PdfSourceAdapter.extract_text_from_pdf (_sc.mjs:97118:49)
    at PdfSourceAdapter._read (_sc.mjs:97106:35)
    at async PdfSourceAdapter.import (_sc.mjs:96540:21)
    at async PdfSourceAdapter.import (_sc.mjs:96940:5)
    at async SmartSource.import (_sc.mjs:92173:9)
    at async Promise.all (index 1)
    at async SmartSources.process_import_queue (_sc.mjs:92738:9)
    at async SmartSources.process_load_queue (_sc.mjs:92728:7)
    at async SmartSources.run_load (_sc.mjs:91478:5)
    at async SmartSources.run_load (_sc.mjs:92828:5) "TypeError: Cannot read properties of undefined (reading 'pdfjsLib')\n    at PdfSourceAdapter.extract_text_from_pdf (file:///C:/Users/jesse/AppData/Local/Programs/smart-connect/resources/app.asar/src/_sc.mjs:97118:49)\n    at PdfSourceAdapter._read (file:///C:/Users/jesse/AppData/Local/Programs/smart-connect/resources/app.asar/src/_sc.mjs:97106:35)\n    at async PdfSourceAdapter.import (file:///C:/Users/jesse/AppData/Local/Programs/smart-connect/resources/app.asar/src/_sc.mjs:96540:21)\n    at async PdfSourceAdapter.import (file:///C:/Users/jesse/AppData/Local/Programs/smart-connect/resources/app.asar/src/_sc.mjs:96940:5)\n    at async SmartSource.import (file:///C:/Users/jesse/AppData/Local/Programs/smart-connect/resources/app.asar/src/_sc.mjs:92173:9)\n    at async Promise.all (index 1)\n    at async SmartSources.process_import_queue (file:///C:/Users/jesse/AppData/Local/Programs/smart-connect/resources/app.asar/src/_sc.mjs:92738:9)\n    at async SmartSources.process_load_queue (file:///C:/Users/jesse/AppData/Local/Programs/smart-connect/resources/app.asar/src/_sc.mjs:92728:7)\n    at async SmartSources.run_load (file:///C:/Users/jesse/AppData/Local/Programs/smart-connect/resources/app.asar/src/_sc.mjs:91478:5)\n    at async SmartSources.run_load (file:///C:/Users/jesse/AppData/Local/Programs/smart-connect/resources/app.asar/src/_sc.mjs:92828:5)"
import @ _sc.mjs:92179
await in import (async)
(anonymous) @ _sc.mjs:92738
process_import_queue @ _sc.mjs:92738
process_load_queue @ _sc.mjs:92728
await in process_load_queue (async)
run_load @ _sc.mjs:91478
run_load @ _sc.mjs:92828
(anonymous) @ _sc.mjs:93322
Show 7 more frames
Show less
_sc.mjs:92179 TypeError: Cannot read properties of undefined (reading 'pdfjsLib')
    at PdfSourceAdapter.extract_text_from_pdf (_sc.mjs:97118:49)
    at PdfSourceAdapter._read (_sc.mjs:97106:35)
    at async PdfSourceAdapter.import (_sc.mjs:96540:21)
    at async PdfSourceAdapter.import (_sc.mjs:96940:5)
    at async SmartSource.import (_sc.mjs:92173:9)
    at async Promise.all (index 2)
    at async SmartSources.process_import_queue (_sc.mjs:92738:9)
    at async SmartSources.process_load_queue (_sc.mjs:92728:7)
    at async SmartSources.run_load (_sc.mjs:91478:5)
    at async SmartSources.run_load (_sc.mjs:92828:5) "TypeError: Cannot read properties of undefined (reading 'pdfjsLib')\n    at PdfSourceAdapter.extract_text_from_pdf (file:///C:/Users/jesse/AppData/Local/Programs/smart-connect/resources/app.asar/src/_sc.mjs:97118:49)\n    at PdfSourceAdapter._read (file:///C:/Users/jesse/AppData/Local/Programs/smart-connect/resources/app.asar/src/_sc.mjs:97106:35)\n    at async PdfSourceAdapter.import (file:///C:/Users/jesse/AppData/Local/Programs/smart-connect/resources/app.asar/src/_sc.mjs:96540:21)\n    at async PdfSourceAdapter.import (file:///C:/Users/jesse/AppData/Local/Programs/smart-connect/resources/app.asar/src/_sc.mjs:96940:5)\n    at async SmartSource.import (file:///C:/Users/jesse/AppData/Local/Programs/smart-connect/resources/app.asar/src/_sc.mjs:92173:9)\n    at async Promise.all (index 2)\n    at async SmartSources.process_import_queue (file:///C:/Users/jesse/AppData/Local/Programs/smart-connect/resources/app.asar/src/_sc.mjs:92738:9)\n    at async SmartSources.process_load_queue (file:///C:/Users/jesse/AppData/Local/Programs/smart-connect/resources/app.asar/src/_sc.mjs:92728:7)\n    at async SmartSources.run_load (file:///C:/Users/jesse/AppData/Local/Programs/smart-connect/resources/app.asar/src/_sc.mjs:91478:5)\n    at async SmartSources.run_load (file:///C:/Users/jesse/AppData/Local/Programs/smart-connect/resources/app.asar/src/_sc.mjs:92828:5)"
import @ _sc.mjs:92179
await in import (async)
(anonymous) @ _sc.mjs:92738
process_import_queue @ _sc.mjs:92738
process_load_queue @ _sc.mjs:92728
await in process_load_queue (async)
run_load @ _sc.mjs:91478
run_load @ _sc.mjs:92828
(anonymous) @ _sc.mjs:93322
Show 7 more frames
Show less

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

1 participant