Skip to content

Error: Cannot find module Next.js 14 when module exists #64765

Closed Answered by hewar-saber
hewar-saber asked this question in Help
Discussion options

You must be logged in to vote

After I have tried multiple versions of Next.js and multiple different versions of @google-cloud/tasks, the issue persisted locally and on Vercel.

I even played around with the next.config.mjs webpack config, and cleared cache, and deleted node_modules multiple times.

Changing the @google-cloud/tasks version to 5.1.0 fixed the issue.

This module always seems to have issues, I recommend staying away from it. to fix this, run:

npm i @google-cloud/[email protected]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jnnnthnn
Comment options

Answer selected by hewar-saber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants