This relative module was not found: appears when docker composes.
Asked 2 months ago, Updated 2 months ago, 4 views
When you run the docker composition command, you get the following error and you cannot access localhost:8080.
It seems that I can't find the main.js in the src file, but when I look at the directory, it's normal, so I'm in trouble.I hope you enjoy it.
<s>[webpack.Progress] 98% after emmitting
web | ERROR Failed to compile with 2 errors 2:33:24 AM
web | This relative module was not found:
web | * ./src/main.js in multi ./node_modules/@vue/cli-service/node_modules/webpack-dev-server/client/index.js ./node_modules/@vue/cli-service/node_modules/webpack/hot/dev-server.js ./src/main.js, multi ./node_modules/@vue/cli-service/node_modules/webpack/hot/dev-server.js ./node_modules/@vue/cli-service/node_modules/webpack-dev-server/client/index.js ./src/main.js
FROM node: 10.17.0-alpine 3.9
RUN npm install
CMD ["npm", "run", "serve" ]