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

[Error]: Module not found #274

Open
NitinCopods opened this issue Jun 13, 2024 · 10 comments
Open

[Error]: Module not found #274

NitinCopods opened this issue Jun 13, 2024 · 10 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@NitinCopods
Copy link

NitinCopods commented Jun 13, 2024

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

Screenshot 2024-06-13 at 4 35 06 PM
@cyntler
Copy link
Owner

cyntler commented Jun 15, 2024

@NitinCopods Is it with the latest version?

@cyntler cyntler added bug Something isn't working help wanted Extra attention is needed labels Jun 15, 2024
@karimdaghari
Copy link

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

@NitinCopods
Copy link
Author

@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.

@karimdaghari
Copy link

@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.

@NitinCopods
Copy link
Author

@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.

@cyntler
Copy link
Owner

cyntler commented Jun 17, 2024

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
Copy link
Owner

cyntler commented Jun 28, 2024

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

@karimdaghari
Copy link

karimdaghari commented Jun 29, 2024

@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

@cyntler
Copy link
Owner

cyntler commented Jun 29, 2024

@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

@regexyl
Copy link

regexyl commented Jul 23, 2024

A related thread, given that react-pdf is a dep: wojtekmaj/react-pdf#1822

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants