אשמח לעזרתכם.
אני מנסה להציג תמונה ששמורה כקובץ PDF, באפליקציה שיצרתי בריאקט.
ניסיתי להשתמש ב--react-pdf-to-image אבל קיבלתי שגיאה:
ERROR in ./node_modules/pdfjs-dist/webpack.js
Module not found: Error: Can't resolve 'worker-loader' in 'C:\react\
התקנתי את worker-loader ואז קיבלתי 11 שגיאות חדשות.
מתוכן:
* ERROR in ./node_modules/worker-loader/node_modules/schema-utils/src/validateOptions.js
...Module not found: Error: Can't resolve 'fs' in 'C: (למרות שהוספתי "fs": false, בpackage.json)
* ERROR in (webpack)/lib/node/NodeTargetPlugin.js
...Module not found: Error: Can't resolve 'module' in 'C:
ועוד שגיאה שחוזרת על עצמה 9 פעמים על קבצי JSON
* ERROR in ./node_modules/worker-loader/dist/options.json
Module parse failed: Unexpected token m in JSON at position 0 while parsing near 'module.exports = "da...'
File was processed with these loaders:
./node_modules/url-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders.
SyntaxError: Unexpected token m in JSON at position 0 while parsing near 'module.exports = "da...'
הוספתי globalObject: 'this' ב webpack.config.js .
וכעת אין לי מושג איך להתקדם.
אודה מאד לכל כיוון שיכול לקדם אותי.
תודה רבה!
אני מנסה להציג תמונה ששמורה כקובץ PDF, באפליקציה שיצרתי בריאקט.
ניסיתי להשתמש ב--react-pdf-to-image אבל קיבלתי שגיאה:
ERROR in ./node_modules/pdfjs-dist/webpack.js
Module not found: Error: Can't resolve 'worker-loader' in 'C:\react\
התקנתי את worker-loader ואז קיבלתי 11 שגיאות חדשות.
מתוכן:
* ERROR in ./node_modules/worker-loader/node_modules/schema-utils/src/validateOptions.js
...Module not found: Error: Can't resolve 'fs' in 'C: (למרות שהוספתי "fs": false, בpackage.json)
* ERROR in (webpack)/lib/node/NodeTargetPlugin.js
...Module not found: Error: Can't resolve 'module' in 'C:
ועוד שגיאה שחוזרת על עצמה 9 פעמים על קבצי JSON
* ERROR in ./node_modules/worker-loader/dist/options.json
Module parse failed: Unexpected token m in JSON at position 0 while parsing near 'module.exports = "da...'
File was processed with these loaders:
./node_modules/url-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders.
SyntaxError: Unexpected token m in JSON at position 0 while parsing near 'module.exports = "da...'
הוספתי globalObject: 'this' ב webpack.config.js .
וכעת אין לי מושג איך להתקדם.
אודה מאד לכל כיוון שיכול לקדם אותי.
תודה רבה!