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

Build fails , Module not found error 'pnpapi' #5

Open
Rashmi-278 opened this issue Feb 15, 2021 · 1 comment
Open

Build fails , Module not found error 'pnpapi' #5

Rashmi-278 opened this issue Feb 15, 2021 · 1 comment

Comments

@Rashmi-278
Copy link
Contributor

ModuleNotFoundError: Module not found: Error: Can't resolve 'pnpapi' in '/home/torch/Desktop/Fresh/Renderpub-Auth/nextjs-cognito-auth-javascript-master/node_modules/next/dist/lib'

Build error occurred
Error: > Build failed because of webpack errors
at build (/home/torch/Desktop/Fresh/Renderpub-Auth/nextjs-cognito-auth-javascript-master/node_modules/next/dist/build/index.js:15:918)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: next build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.

I tried to build and deploy this project.
There is no problem running development env but it fails in production.
Even after installing the module pnpapi it fails.

@Rashmi-278
Copy link
Contributor Author

vercel/next.js#18969

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant