Hi everyone,
I’m still getting this error when deploying my application ( https://tangolibre-nextjs.netlify.app )
Any help will be appreciated!
12:09:20 PM: info - Checking validity of types…
12:09:20 PM: info - Creating an optimized production build…
12:09:39 PM: Failed to compile.
12:09:39 PM:
12:09:39 PM: ModuleNotFoundError: Module not found: Error: Can’t resolve ‘mongodb-client-encryption’ in ‘/opt/build/repo/node_modules/mongodb/lib’
12:09:39 PM: > Build error occurred
12:09:39 PM: Error: > Build failed because of webpack errors
12:09:39 PM: at /opt/build/repo/node_modules/next/dist/build/index.js:17:924
12:09:39 PM: at runMicrotasks ()
12:09:39 PM: at processTicksAndRejections (internal/process/task_queues.js:97:5)
12:09:39 PM: at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/telemetry/trace/trace.js:5:584)
12:09:39 PM: npm ERR! code ELIFECYCLE
12:09:39 PM: npm ERR! errno 1
12:09:39 PM: npm ERR! tangonext@0.1.0 build: next build
12:09:39 PM: npm ERR! Exit status 1
12:09:39 PM: npm ERR!
12:09:39 PM: npm ERR! Failed at the tangonext@0.1.0 build script.
12:09:39 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
12:09:39 PM: npm ERR! A complete log of this run can be found in:
12:09:39 PM: npm ERR! /opt/buildhome/.npm/_logs/2021-05-03T10_09_39_971Z-debug.log
12:09:40 PM:
12:09:40 PM: ────────────────────────────────────────────────────────────────
12:09:40 PM: “build.command” failed
12:09:40 PM: ────────────────────────────────────────────────────────────────
12:09:40 PM:
12:09:40 PM: Error message
12:09:40 PM: Command failed with exit code 1: npm run build
12:09:40 PM:
12:09:40 PM: Error location
12:09:40 PM: In Build command from Netlify app:
12:09:40 PM: npm run build
12:09:40 PM: