iview / iview/iview-admin

npm run dev 出现错误 mac 。我按照前面的哥们改了,但是不行。加了ejs.

Open
#668 1 comment 0 reactions 0 assignees View on GitHub
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 6: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

Research direction

Start with npm run dev and inspect the syntax error reported at line 10 of src/router/router.js, then trace its import from src/main.js. Confirm the router can be parsed and the development build completes without the reported Module build failed error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
build-system, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.