react-doc-viewer icon indicating copy to clipboard operation
react-doc-viewer copied to clipboard

[Error]: Module not found

Open NitinCopods opened this issue 1 year ago • 10 comments

I am getting following module not found error. I am using Next JS 14.

Screenshot 2024-06-13 at 4 35 06 PM

NitinCopods avatar Jun 13 '24 11:06 NitinCopods

@NitinCopods Is it with the latest version?

cyntler avatar Jun 15 '24 20:06 cyntler

Indeed. Both Next (using turbo) and react-doc-viewer are on latest versions.

karimdaghari avatar Jun 16 '24 13:06 karimdaghari

@NitinCopods Is it with the latest version?

@cyntler Yes, It doesn't work with turbo. So I have removed turbo and currently running my app using webpack and it's working.

NitinCopods avatar Jun 16 '24 15:06 NitinCopods

@cyntler Yes, It doesn't work with turbo. So I have removed turbo and currently running my app using webpack and it's working.

v1.14.1 works with turbo tho.

karimdaghari avatar Jun 16 '24 15:06 karimdaghari

@cyntler Yes, It doesn't work with turbo. So I have removed turbo and currently running my app using webpack and it's working.

v1.14.1 works with turbo tho.

@karimdaghari Okay, I'll create a sandbox for the same and attach it.

NitinCopods avatar Jun 17 '24 05:06 NitinCopods

OK, so I have to fix module building system again...

ESM, CJS + Webpack, Vite, Turbo, Next, CRA. OMG! Each tool processes it all differently, I think.

Module support in the JS ecosystem is a bit lacking in my opinion...

cyntler avatar Jun 17 '24 14:06 cyntler

@NitinCopods Could you check this problem with v1.16.5?

cyntler avatar Jun 28 '24 20:06 cyntler

@NitinCopods Could you check this problem with v1.16.5?

Although not the pinged person, I'm also concerned. And, unfortunately the (same, exact) problem still persists. Using the same setup Next 14.2.4 and 1.16.5

karimdaghari avatar Jun 29 '24 01:06 karimdaghari

@NitinCopods Could you check this problem with v1.16.5?

Although not the pinged perso, I'm also concerned. And, unfortunately the (same, exact) problem still persists. Using the same setup Next 14.2.4 and 1.16.5

Thanks, ok! I have to prepare this use-case and check it again

cyntler avatar Jun 29 '24 09:06 cyntler

A related thread, given that react-pdf is a dep: https://github.com/wojtekmaj/react-pdf/issues/1822

regexyl avatar Jul 23 '24 13:07 regexyl