npm run dev error
Nobody has claimed this yet.
- Dominant language
- Vue
- Stars
- 16.3k
- Forks
- 4.7k
- PR merge metrics
- No merged PRs in 30d
Description
`ERROR in ./src/router/router.js
Module build failed: SyntaxError: Unexpected token (10:21)
8 | title: 'Login - 登录'
9 | },
> 10 | component: () => import('@/views/login.vue')
| `^`
11 | };
12 |
13 | export const page404 = {
@ ./src/main.js 4:0-44
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server @/main
Child html-webpack-plugin for "../index.html":`
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running `npm run dev` and inspecting `src/router/router.js` around the dynamic import on line 10. Trace the reported syntax error from `src/main.js` and verify the development build completes without the router parse failure; the issue is done when the command starts successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, webpack
- Domain
- build-system, frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100