iview / iview/iview-admin

npm run dev error

Open
#618 4 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.