Skip to content
Search

VueCLI:Service

lastmod 2020-09-26created 2020-09-264 edits

Serve

$ vue-cli-service serve

Troubleshooting

This relative module was not found: ./src/main.ts

The following error may occur.

$ yarn serve
yarn run v1.22.5
$ NODE_ENV=develop vue-cli-service serve
 INFO  Starting development server...
Starting type checking service...
Using 1 worker with 2048MB memory limit
98% after emitting CopyPlugin

 ERROR  Failed to compile with 2 errors                                                                            10:07:29 AM

This relative module was not found:

* ./src/main.ts in multi (webpack)-dev-server/client?http://192.168.1.209:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.ts, multi (webpack)/hot/dev-server.js (webpack)-dev-server/client?http://192.168.1.209:8080&sockPath=/sockjs-node ./src/main.ts
Type checking in progress...
No type errors found
Version: typescript 4.0.3
Time: 6352ms

When using the serve command, add the entry point file as an argument.

$ vue-cli-service serve ./src/main.js

See also

Favorite site

author Zer0 sitemap