You may experience a webpack issue when you install react-pdf. Since Webpack 5 isn't included in node automatically you can follow these steps in the react-pdf docs to help resolve the issue. github.com/diegomura/react-pdf#webpack-5
@johngeronimo88212 жыл бұрын
can you teach us how to add this webpack dependencies because I'm getting an error
@arslan992 жыл бұрын
I'm ngl I couldn't figure it out myself the docs themselves show that you have to do something with webpack in nodemodules but I found installing a previous version of webpack is a better solution imo
@farukeomar43542 жыл бұрын
@@arslan99 where is the webpack.config file ? can not find in react app.
@farukeomar43542 жыл бұрын
@@johngeronimo8821 r u able to use this?
@johngeronimo88212 жыл бұрын
@@farukeomar4354 unfortunately, it's impossible for me
@phamtuankietk17hcm92 Жыл бұрын
Very usefull, I have find this download article for 3-4 hour and then I find u. Thank u so much
@arslan99 Жыл бұрын
Glad I could help
@devjariwala.j8 ай бұрын
same here
@devjariwala.j8 ай бұрын
life saving video loved the last part of downloading
@arslan998 ай бұрын
I'm glad I could help;
@ahmedyousif4782 Жыл бұрын
exactly what I was searching for, thank you !
@AnitaR-q5l5 ай бұрын
Thank you very much.. This is what I actually searching for.
@arslan99Ай бұрын
Glad I could help!
@hanac558611 ай бұрын
Thanks, brief but clear
@arslan9911 ай бұрын
Np
@mdborhanuddinmajumder7513 Жыл бұрын
thanks and love from bangladesh
@arslan99 Жыл бұрын
Thanks for watching 🫡
@igihara2662 Жыл бұрын
is there way to do it with dynamic data i.e. pass data from a selected/clicked table?
@NashIvan19Ай бұрын
Very helpful.
@pedrohenriqueferreira6292 жыл бұрын
Hi Arslan, I am an student and I am practicing on how generate pdf files from react. Thanks for the video it is was very helpful. Would you have any reference on how to create columns? or columns inside columns using react-pdf? Also, how could I find your next video? Many thanks man. You are inspiring people!
@arslan992 жыл бұрын
Hey there, That is a bit more advanced but there are great examples on codesandbox on how to make a chart with a table Here's the link to part 2 kzbin.info/www/bejne/Y5DLg4p4pcZ9kM0
@pedrohenriqueferreira6292 жыл бұрын
@@arslan99 Thanks a lot Arslan! I will play around with it and see the possibilities. Thanks again
@madhurjyagogoi53532 жыл бұрын
what extension are you using for autosuggestion ? is it tabnine or another?
@arslan992 жыл бұрын
GitHub copilot
@abeasta7674 Жыл бұрын
thank for the video. It was useful 👍
@arslan99 Жыл бұрын
Glad it was helpful!
@kevindejesuslopezosorio45172 жыл бұрын
Hello, thanks for the information I'm trying to do this in my app, but it's showing an error in the "" component:" and read properties of undefined (reading 'call') at new Queue
@MauricioPedrodaRocha2 жыл бұрын
mine is also on it, I had to install it using --force, because it says that the react version is too advanced for a lib without support for the new version
@arslan99 Жыл бұрын
yes there seems to be a weird error with react pdf I'll try to see if i can make a video to fix this issue
@sravanimamidala23568 ай бұрын
Is it useful to replace the existing content in the pdf ?
@vognercee2 жыл бұрын
Hello Arsian, Thank you for your video. My need is to view an existing pdf file - no image or text - in React. Can your process be adapted for this purpose?
@arslan992 жыл бұрын
Do you mean a pdf viewer in your react app?
@vognercee2 жыл бұрын
@@arslan99 Yes. I resolved the issue with react-pdf. Thank you for the response.
@Osmanity Жыл бұрын
I also was in need to view an existing pdf file, how did you solve it @vogner
@juryhc Жыл бұрын
Hi Arslan, this tutorial is great, but I have a query: Is it possible to add a background image to each generated page? I have tried to do it with different properties but nothing has worked for me. I hope you can help me, regards.
@arslan99 Жыл бұрын
It should be possible Lemme see what I can do
@juryhernandez9160 Жыл бұрын
@@arslan99 thank you, i trust you
@arslan99 Жыл бұрын
kzbin.info/www/bejne/l3K3f5R6aNdniNU that should help
@prajwal13415 ай бұрын
thanks bro..
@mutiaraayun60625 ай бұрын
i try your video and implement using next.js 14 but some how image not show when i'm using components image in react-pdf also path of image using local. any suggestion for my problem
@SonAyoD2 жыл бұрын
i cant figure out how to add dynamic data i can map through via react pdf components. e.g. {item.data} doesn't work.
@arslan992 жыл бұрын
I assume you'd have to make the map inside the text tag instead of item.data
@SonAyoD2 жыл бұрын
Thanks for replying. For example i have this... const { rightEye, LeftEye } = useContext(DataContext); const age = rightEye.age; return ( {age} ) i've tried {rightEye.age} to with no luck value updates on app re-renders, which didn't work, so i went with the above that didn't work either.
@arslan992 жыл бұрын
Theres two way i can think of try this. 1. {this.state.data.map((item,i) => Test)} or 2. this.state.data.map((item,i) => {item} ) Thats my best guess without actually interacting with the code
@SonAyoD2 жыл бұрын
@@arslan99 thank you i found a solution .
@arslan992 жыл бұрын
@@SonAyoD awesome! 😃
@priyan63802 жыл бұрын
Hey! Thanks for sharing this! Do you have any idea about how I could capture scrollable content into pdf?
@arslan99 Жыл бұрын
one way I guess you could do it, is by putting it all in a react pdf list tag and that should help
@Nicojpalacio11 ай бұрын
Thank u bro!
@arslan9911 ай бұрын
Np
@rohanthakran4225 Жыл бұрын
Sir i am trying to this but i don;t know the image is showing on the page but when i open the pdf after download there was no image
@arslan99 Жыл бұрын
how are you displaying your image? in your pdf?
@sushantw834 Жыл бұрын
Thank you.
@arslan99 Жыл бұрын
Np
@mubeenjutt28 Жыл бұрын
I need this, thanks
@arslan99 Жыл бұрын
Glad I'm could lend a hand
@samandasalazar45232 жыл бұрын
Hi, I'm having this issue RangeError: Failed to construct 'TextDecoder': The encoding label provided ('utf-16le') is invalid.
@arslan992 жыл бұрын
Unfortunately I'm not too sure what that means sorry
@tiptrcks39609 ай бұрын
Hey bro I have resume component with lots of tailwind styling etc, I want to somehow export that as pdf, but no like an image inside a pdf, I saw this approach but its tedious cause I have 5 to 6 various types of templates with different styling…. Can you help?
@shorifulislam923 Жыл бұрын
thanks a lot
@arslan99 Жыл бұрын
Np bro
@reacticity Жыл бұрын
is it possible to download the existing page?
@arslan99 Жыл бұрын
Sorry what do you mean existing page?
@reacticity Жыл бұрын
@@arslan99 you did it to other component. What if i have a blog page and a download button in the same blog page. When i click the button the, the blogs will be download as pdf. If there is any way, could you please suggest me anything?
@arslan99 Жыл бұрын
So you mean you want to download something directly on the webpage?
@judygerhold73782 жыл бұрын
Thanks alot
@CasriWare Жыл бұрын
does this work on electron js?
@arslan99 Жыл бұрын
Funny enough I'm actually learning electron so I can duplicate this tutorial onto that for you soon
@msea56542 жыл бұрын
is there a way to display pdf from remote database , especially if there are received as blob ?
@arslan992 жыл бұрын
Not too sure I understand what you mean. Could you elaborate?
@msea56542 жыл бұрын
@@arslan99 sure thing , first thank you for taking time to respond , what i mean is i am fetch a pdf file from a database , when i receive the file ( which is in blob format) , i managed to read it through (window.open(URL.createObjectURL(my_blob)) all this without react-pdf then when i am trying to display it using react-pdf by using component i cant seem to find a way to fill the "file" property of this component which it is necessary because it is the pdf file itself . I hope i was clearn enough , if i have any misconception feel free to correct me and thank you in advance.
@arslan992 жыл бұрын
@@msea5654 I've actually never delt with making a blob back into a pdf but this may help stackoverflow.com/questions/62575805/convert-blob-to-pdf-file
@b2c_org_bd Жыл бұрын
will this work now? I installed react using vite
@arslan99 Жыл бұрын
Not too sure about vite I've never used it before
@SimonFabcic9 ай бұрын
If you are facing with issue "Module not found: Error: Can't resolve 'fs'", try this: In 'package.json' add: "dependencies": { "@react-pdf/renderer": "^3.3.3", }, "pnpm": { "overrides": { "@react-pdf/image": "2.2.3", "@react-pdf/pdfkit": "3.0.4" } }, And run 'npm i' - for reinstalling dependencies Happy hacking ;)
@VanshChavda-b2vАй бұрын
I have to pass pure html is that possible?
@SiddarthMenon-h8q5 күн бұрын
I think this solution wont work with a vite react app but works fine with Create react app
@Yusuffaruq-c4y Жыл бұрын
Sir when i click on the download button it is not giving me any result
@arslan99 Жыл бұрын
What's your code looking like?
@Yusuffaruq-c4y Жыл бұрын
Sir I tried it again and it works. But when I click on the download button it's not showing loading before displaying the pdf.
@efilacchione2 жыл бұрын
How can I convert any react component with dymanic content to a PDF blob. Is that even possible with this library?
@arslan992 жыл бұрын
Well you can make a use call back that changes the blob depending on the dynamic content
@farukeomar43542 жыл бұрын
can not install this package , error shown ,but why
@arslan992 жыл бұрын
Please refer to my pinned comment it shows how to solve it
@radubogdan5725 Жыл бұрын
i get this error: "Attempted import error: 'create' is not exported from 'fontkit' (imported as 'fontkit')."... Anyone got a solution? nothing i found on google works for me
@arslan99 Жыл бұрын
I don't think I used fontkit however I have a advanced react pdf tutorial on my channel you can check it about font changes
@radubogdan5725 Жыл бұрын
@@arslan99 thanks for reply! My problem was because of some dependencies :)
@arslan99 Жыл бұрын
@@radubogdan5725 I'm glad you got it 😁
@thelatelateshowwithmaaz6260 Жыл бұрын
Sir plz help me iam in a big trouble because When downloading pdf it is saying check your internet connection and try again please help sir
@arslan99 Жыл бұрын
Is your internet not connected? Your browser seems or your computer seems not to be connected
@thelatelateshowwithmaaz6260 Жыл бұрын
@@arslan99 Sir i dont know whoever uses my web application even in my localhost when i click on PDFDownloadLink Button i starts download but when i see in my download it get failed with error message "Check your internet connection"
@arslan99 Жыл бұрын
@@thelatelateshowwithmaaz6260 I'm not entirely sure on that case because check internet connection error usually comes from the browser saying you have not connected to wifi but other than that I'm not too sure sorry
@thelatelateshowwithmaaz6260 Жыл бұрын
@@arslan99 Sir if you can give your instagram i can send you error images Hope this will be helpful for both of us Sir
@arslan99 Жыл бұрын
@@thelatelateshowwithmaaz6260 I'm sorry I cannot give personal info if you wanna create a Pastebin or something and put the images there I can view them from there
@parthdesai17032 жыл бұрын
Can you link the video url to send the pdf to email that you mention at the end of the video?
@arslan992 жыл бұрын
kzbin.info/www/bejne/Y5DLg4p4pcZ9kM0
@sphoorthys79832 жыл бұрын
The download button is getting disappeared. I am not getting where i went wrong
@arslan992 жыл бұрын
You're teranary operater could be wrong 🤔
@anaepeot2 жыл бұрын
how can I make the pdf not download and just only show it on the browser?
@arslan99 Жыл бұрын
stackoverflow.com/questions/45596329/display-pdf-in-reactjs this should help
@thotchs41162 жыл бұрын
Is this libraly support utf-8 just like Thai font ?
@arslan992 жыл бұрын
I'm not sure
@thotchs41162 жыл бұрын
@@arslan99 thanks arslan
@alihasanli620 Жыл бұрын
Hello Arslan, I have prepared a report with normal html css and react without using react-pdf. How can I convert that report to pdf without losing quality? I used the html2canvas and jsPdf libraries but the quality decreased.
@arslan99 Жыл бұрын
How come you don't want to use react pdf? I'm a bit confused haha
@eltonsantosoficial Жыл бұрын
Work with next too?
@arslan99 Жыл бұрын
It should but not entirely sure
@arekarksinski34882 жыл бұрын
in github you have different things and I can't see that you import pdffile anywhere
@arslan992 жыл бұрын
I think I must've deleted it you can just fork it and import it 😃
@crushed_oreos2 жыл бұрын
@@arslan99 i added a pull request with your original code, you can take a look and merge it if you want :)
@arslan992 жыл бұрын
@@crushed_oreosoh wow that's awesome! I'll check it out thanks!
@j.villasmil95754 ай бұрын
Hello Arslan, I see you couldn't set the page number on each page, I have the same problem, only show it at the end of the entire document
@CODE-ze7oe Жыл бұрын
How to create table ?
@arslan99 Жыл бұрын
Lemme see what I can do for you
@fakhrialfatah76782 жыл бұрын
hi bro i install the package but, Module not found: Error: Can't resolve 'react-pdf/renderer' how to solve it
@arslan992 жыл бұрын
You have two options, either delete your node modules and reinstall your node modules or reinstall react pdf
@fakhrialfatah76782 жыл бұрын
@@arslan99 I've done both, it's still the same
@arslan992 жыл бұрын
@@fakhrialfatah7678 oh try installing an earlier version of react pdf
@kevindejesuslopezosorio45172 жыл бұрын
@@arslan99 what version would it be?
@arslan992 жыл бұрын
I would suggest going through the versions and finding an older version with a pretty substantial amount of downloads
@jayeshuramanatti76328 ай бұрын
is this react js or react native??
@arslan998 ай бұрын
React js
@annemieknieboer82212 жыл бұрын
Do you now how to get it work with react18.2.0? I can't install it now :(
@arslan992 жыл бұрын
unfortunetly it seems like it wont work since it's peer dependency is at react 17 you could try --force when you install it. however it can be dangerous but thats a way to fix the issue
@kacperkepinski49902 жыл бұрын
i dont know what is your version of react... i have some problem with that pdf
@arslan992 жыл бұрын
its the most recent but what issue do you have?
@kacperkepinski49902 жыл бұрын
@@arslan99 webpack < 5 used to include polyfills for node.js core modules by default.
@kacperkepinski49902 жыл бұрын
solved
@arslan992 жыл бұрын
@@kacperkepinski4990 Im glad you got it 😃
@funnycutest20432 жыл бұрын
@@kacperkepinski4990 how did you solve that error
@1emnL8 ай бұрын
LeGoat
@adeeltechedit6760 Жыл бұрын
Helo arslan Can you please tell me about the suggestion you getting when you was writing code
@arslan99 Жыл бұрын
That's called GitHub copilot
@adeeltechedit6760 Жыл бұрын
@@arslan99 thnks alot ❤
@arslan99 Жыл бұрын
@@adeeltechedit6760 you're welcome 😁
@mustafa.celiktas Жыл бұрын
T H A N K Y O U U U U ❤
@arslan99 Жыл бұрын
Np
@shreepowar8672 жыл бұрын
thank you so much this helped me lot have you uploaded next vdo?
@arslan992 жыл бұрын
Not yet, it's a longer video so the production is taking sometime 😅
@shreepowar8672 жыл бұрын
when you are going to upload it?
@shreepowar8672 жыл бұрын
i want horzontal line in my pdf how should i do it
@arslan992 жыл бұрын
Not to sure yet maybe throw l tomorrow or Friday
@arslan992 жыл бұрын
If I remember correctly it was
@sureshsuthar7902 жыл бұрын
getting page blank........
@arslan99 Жыл бұрын
what is your error in your console say?
@SandeepKunaparaju-r9g Жыл бұрын
Thanks Arslan for making this video. It helped me big time but when I opened the downloaded pdf file it said the file got corrupted. I am trying to it figure it out. If anyone else also facing the issue please do let me know
@arslan99 Жыл бұрын
Hmmm there could be something wrong with your generating of your pdf
@HanLok420 Жыл бұрын
got the same problem. But I forgot to return the PDF-file in the const of the PDF-file.js maybe you did the same. const PDFFile =()=>{ return ....
@SandeepKunaparaju-r9g11 ай бұрын
yes you are right I forgot to update the issue has been resolved when I used return@@HanLok420 Thanks!!!
@emersonsmithperu2 жыл бұрын
Error webpack 5. :(
@arslan992 жыл бұрын
Please refer to this github.com/diegomura/react-pdf#webpack-5
@farukeomar43542 жыл бұрын
so can u share video part 2. where u showing how send pdf file to someone email?
@arslan992 жыл бұрын
kzbin.info/www/bejne/Y5DLg4p4pcZ9kM0
@farukeomar43542 жыл бұрын
When we click download button, that time i want to send this pdf to a email address Before click download button i will give email address in input field So how can done this, ? If u have time can make a video for us?
@amatir-tutor2421 Жыл бұрын
How to create table
@arslan99 Жыл бұрын
not too sure
@anushabezzam21572 жыл бұрын
Can't resolve './zlib_bindings' in 'D: eact epo\LaterEntryUI\LaterEntryUI ode_modules\zlib\lib' getting this error.can anyone solve this
@arslan992 жыл бұрын
try re installing the package or re install your ndoe modeuls
@chaithanyasuraj70492 жыл бұрын
Hi Can you please say how do I display images in my pdf using react pdf renderer
@arslan992 жыл бұрын
react-pdf.org/svg This should help
@claudiamarcela11012 жыл бұрын
Se puede colocar ese PDFDownloadLink dentro del onclick?
@arslan99 Жыл бұрын
is this what you mean? stackoverflow.com/a/66768020
@unlimitedpower5986 Жыл бұрын
Hello Arslan, Thank you for uploading this video! Can I ask please how to make Hyperlinks (jump to page)?
@unlimitedpower5986 Жыл бұрын
Just found it! Thank you for your amazing work!
@arslan99 Жыл бұрын
I'm glad you got it 😁
@arslan99 Жыл бұрын
And this is also what you've tried? stackoverflow.com/a/70577891 If that doesn't work then I will make a tutorial on it for you
@unlimitedpower5986 Жыл бұрын
@@arslan99 Tried it with ttf, woff from local folder and google fonts link too but nothing. I don't know what can be the problem. To test it I used the example link from the docs working on - android: brave - mac: safari not working on - pc: brave, chrome, firefox, edge - mac: brave if the tutorial you mentioned covers the solution for this, I'd be more than grateful :D
@arslan99 Жыл бұрын
@@unlimitedpower5986 Lemme see what I can do
@blueandraedevera66052 жыл бұрын
Anyone have tried to use it on iOS? The PDFDownloadLink button doesn't work, it only displays the page instead of downloading the PDF file. Anyone has a solution for this? I'm using the latest version of it.
@arslan99 Жыл бұрын
www.npmjs.com/package/react-native-pdf you could use something like this
@waleednaseem85712 жыл бұрын
bro getting error while importing the react-pdf library
@arslan992 жыл бұрын
What's the error?
@rohanthakran4225 Жыл бұрын
How to pass props into this
@arslan99 Жыл бұрын
this should help sorry for the late response github.com/wojtekmaj/react-pdf/issues/308#issuecomment-443538284
@kamalsharma86262 жыл бұрын
how to use with redux?
@arslan992 жыл бұрын
I'm not too sure. I've never used redux before 😕
@kamalsharma86262 жыл бұрын
@@arslan99 any idea?
@yugandharsarath31972 жыл бұрын
Pdf is not downloading
@arslan992 жыл бұрын
What error are you getting?
@yugandharsarath31972 жыл бұрын
@@arslan99 no error, but onclick of download button is not responding , the file is not downloading ... But When refreshes it is showing loading ....
@arslan992 жыл бұрын
@@yugandharsarath3197 try cloning the repo and comparing the app.js files to see if there could a typo in your code?
@farukeomar43542 жыл бұрын
i used this way but it always showing loading . can not able download the pdf.. plz help me out {({loading}) => loading ? loading : 'Download now!' }
@arslan992 жыл бұрын
Put the loading where the download button is and put the download button where the loadings
@farukeomar43542 жыл бұрын
@@arslan99 so what will happend always show download, but the problem is, button r not working, pdf not being download
@arslan992 жыл бұрын
@@farukeomar4354 what does your pdf download function look like?
@farukeomar43542 жыл бұрын
@@arslan99 i did same way as u shown, as documentation said. This package is not working like before. For solving webpack need to use craco When use craco the can not install tailwind This packeage is dead
@arslan992 жыл бұрын
@@farukeomar4354 oh really 😱 okay I'll try to make an update video. Friggin webpack 😤😤
@kacperkepinski49902 жыл бұрын
is using incorrect casing
@arslan992 жыл бұрын
Sorry 😭
@kacperkepinski49902 жыл бұрын
@@arslan99 is using incorrect casing , did you have that?
@arslan992 жыл бұрын
@@kacperkepinski4990 try doing Text instead of TEXT
@kacperkepinski49902 жыл бұрын
@@arslan99 i dont have something like TEXT etc
@arslan992 жыл бұрын
@@kacperkepinski4990 have you installed the package and imported the tags?
@rakeshreddy1365 Жыл бұрын
ERROR in ./node_modules/@react-pdf/pdfkit/lib/pdfkit.browser.es.js 2:0-28 Module not found: Error: Can't resolve 'stream' in '/home/sbuidev/workspace/atom/sre-dashboard/node_modules/@react-pdf/pdfkit/lib' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it.
@boneclinkz56632 жыл бұрын
can u send this generated pdf to an email?
@arslan992 жыл бұрын
kzbin.info/www/bejne/Y5DLg4p4pcZ9kM0 this sound help
@boneclinkz56632 жыл бұрын
Billion Thanks! @Arslan you just got a new subscriber here dx
@arslan992 жыл бұрын
@@boneclinkz5663 np glad I could help
@davon_news2 жыл бұрын
Hello, nice video mate, i was implementing it on my project but appears me this 5 errors take a look please, how i can solve this .... : Compiled with problems:X ERROR in ./node_modules/@react-pdf/pdfkit/lib/pdfkit.browser.es.js 2:0-28 Module not found: Error: Can't resolve 'stream' in 'C:\Users\User\zehlendorf-alfaversion ode_modules\@react-pdf\pdfkit\lib' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }' - install 'stream-browserify' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "stream": false } ERROR in ./node_modules/@react-pdf/pdfkit/lib/pdfkit.browser.es.js 4:0-24 Module not found: Error: Can't resolve 'zlib' in 'C:\Users\User\zehlendorf-alfaversion ode_modules\@react-pdf\pdfkit\lib' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "zlib": require.resolve("browserify-zlib") }' - install 'browserify-zlib' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "zlib": false } ERROR in ./node_modules/@react-pdf/png-js/lib/png-js.browser.es.js 1:0-24 Module not found: Error: Can't resolve 'zlib' in 'C:\Users\User\zehlendorf-alfaversion ode_modules\@react-pdf\png-js\lib' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "zlib": require.resolve("browserify-zlib") }' - install 'browserify-zlib' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "zlib": false } ERROR in ./node_modules/blob-stream/index.js 1:21-47 Module not found: Error: Can't resolve 'stream' in 'C:\Users\User\zehlendorf-alfaversion ode_modules\blob-stream' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }' - install 'stream-browserify' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "stream": false } ERROR in ./node_modules/restructure/src/EncodeStream.js 23:11-28 Module not found: Error: Can't resolve 'stream' in 'C:\Users\User\zehlendorf-alfaversion ode_modules estructure\src' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }' - install 'stream-browserify' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "stream": false }
@arslan992 жыл бұрын
Yeah it's a problem with webpack, this link should help you github.com/diegomura/react-pdf#webpack-5
@davon_news2 жыл бұрын
@@arslan99 thanks a lot dude, the thing is that they ask me to modify the webpack.config but i don't have access to it, do you think that i sould use "npm run eject " to edit it?
@arslan992 жыл бұрын
I think the the webpack.config file is in node_modules try googling where is webpack.config in node_modulea
@johngeronimo88212 жыл бұрын
@@davon_news its on node_modules/react-scripts
@davon_news2 жыл бұрын
@@johngeronimo8821 This is the kind of community i'm proud to belong 👌
@kacperkepinski49902 жыл бұрын
haradly hear u
@arslan992 жыл бұрын
Sorry my mic is Dookie haha
@darwinquinones5397 Жыл бұрын
Thank you so much. I was having an error and I solved it by watching his video: kzbin.info/www/bejne/j4uzZqVtit6SmLc error: Module not found: Error: Can't resolve 'react-pdf/renderer'