Server in production mode - legacy

Hello,

I run yarn install & yarn build & yarn start successfully for VSF in legacy mode.
But when I try to access it I receive Error: Cannot find module './webpack.client.config'.

I tried deleting node_modules from root and core folders but nothing helped.
If I run with yarn dev, everything works fine (except that sometimes I get “offline mode”).

Thank you.

Hello,
please have a look at https://docs.vuestorefront.io/guide/core-themes/webpack.html#core-webpack-build
should help you resolve the issue with the file

I’ve compared the file with the ones from master branch and they are identical.

core/build/webpack.base.config.ts
core/build/webpack.client.config.ts
core/build/webpack.prod.client.config.ts
core/build/webpack.prod.server.config.ts
core/build/webpack.prod.sw.config.ts
core/build/webpack.server.config.ts

Maybe you can give me some hint to the issue?

The error seems to be traced to this command
let baseClientConfig = require('./webpack.client.config') in the file core/build/dev-server.js

0|server | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
0|server | at Module.Hook._require.Module.require (/root/.nvm/versions/node/v10.16.0/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:51:29)
0|server | at require (internal/modules/cjs/helpers.js:25:18)