I’m trying to build a production app for the first time on Netlify and am running into issues where it seems some modules I’m using are either not installing their dependencies or they’re somehow not in the right place. I am able to build it successfully locally using netlify-cli.
Here is the link to my most recent build: Netlify App
Here is the repo for my app: GitHub - JeffLuong/Jeffrey_Luong_Portfolio: Isomorphic personal portfolio website built in Preact.
Here is an example of one of these errors is. Any help will be appreciated!
4:21:10 PM: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
4:21:10 PM: ModuleBuildError: Module build failed (from ./node_modules/css-loader/dist/cjs.js):
4:21:10 PM: Error: Cannot find module './runtime/api'
4:21:10 PM: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
4:21:10 PM: at Function.resolve (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:166:23)
4:21:10 PM: at getImportCode (/opt/build/repo/node_modules/css-loader/dist/utils.js:232:78)
4:21:10 PM: at process.then.result (/opt/build/repo/node_modules/css-loader/dist/index.js:132:49)
4:21:10 PM: at runLoaders (/opt/build/repo/node_modules/webpack/lib/NormalModule.js:316:20)
4:21:10 PM: at /opt/build/repo/node_modules/loader-runner/lib/LoaderRunner.js:367:11
4:21:10 PM: at /opt/build/repo/node_modules/loader-runner/lib/LoaderRunner.js:233:18
4:21:10 PM: at context.callback (/opt/build/repo/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
4:21:10 PM: at process.then.catch.error (/opt/build/repo/node_modules/css-loader/dist/index.js:141:5)
4:21:10 PM: @ ./src/index.js 2:0-23```