Cannot find module 'fork-ts-checker-webpack-plugin-v5'
See original GitHub issue- Building for production... ERROR Error: Cannot find module 'fork-ts-checker-webpack-plugin-v5' Error: Cannot find module 'fork-ts-checker-webpack-plugin-v5' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15) at Function.Module._load (internal/modules/cjs/loader.js:508:25) at Module.require (internal/modules/cjs/loader.js:637:17) at require (internal/modules/cjs/helpers.js:22:18) at api.chainWebpack.config (/app/node_modules/@vue/cli-plugin-typescript/index.js:106:16) at webpackChainFns.forEach.fn (/app/node_modules/@vue/cli-service/lib/Service.js:236:40) at Array.forEach (<anonymous>) at Service.resolveChainableWebpackConfig (/app/node_modules/@vue/cli-service/lib/Service.js:236:26) at PluginAPI.resolveChainableWebpackConfig (/app/node_modules/@vue/cli-service/lib/PluginAPI.js:145:25) at module.exports (/app/node_modules/@vue/cli-service/lib/commands/build/resolveAppConfig.js:9:22) at build (/app/node_modules/@vue/cli-service/lib/commands/build/index.js:147:50) at api.registerCommand (/app/node_modules/@vue/cli-service/lib/commands/build/index.js:89:13) at Service.run (/app/node_modules/@vue/cli-service/lib/Service.js:230:12) at Object.<anonymous> (/app/node_modules/@vue/cli-service/bin/vue-cli-service.js:36:9) at Module._compile (internal/modules/cjs/loader.js:701:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! frontend@0.1.0 build:
vue-cli-service build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the frontend@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-07-08T15_55_28_937Z-debug.log`
I’m getting the following error while building frontend.
RUN npm install fork-ts-checker-webpack-plugin-v5
installing does not solve the issue.
Is this issue related to npm or node versions?
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:7
@HFVladimir this worked for me, thanks! @OrrMarom Keep in mind that you need to create an nginx.conf file inside front-end folder. Changes:
nginx.conf:
Dockerfile:
👍 @HFVladimir and @hernanpesantez. The
nginx.conf
part was the missing piece for me