通过尝试编译此BS-collapse-toggle,我收到以下错误。 我将NPM更新为最新的稳定版本和所有应用程序依赖项,但错误仍然存在。
我从vue-router
和index.js
中删除了main.js
之后,错误就消失了。
这是错误消息:
> ERROR in ./~/vue-loader/lib/template-compiler?{"id":"data-v-0a5cdd23"}!./~/vue-loader/lib/selector.js?type=template&index=0!./src/components/Meetup/Meetups.vue Module build failed: SyntaxError: Unexpected token (122:82)
>
>
> at Parser.pp$4.raise
> (/home/tom/Desktop/DevMeetup/node_modules/vue-template-es2015-compiler/buble.js:2610:13)
> at Parser.pp.unexpected (/home/tom/Desktop/DevMeetup/node_modules/vue-template-es2015-compiler/buble.js:637:8)
> at Parser.pp$3.parseExprAtom (/home/tom/Desktop/DevMeetup/node_modules/vue-template-es2015-compiler/buble.js:2094:10)
> at Parser.parseExprAtom (/home/tom/Desktop/DevMeetup/node_modules/vue-template-es2015-compiler/buble.js:4372:24)
> at Parser.pp$3.parseExprSubscripts (/home/tom/Desktop/DevMeetup/node_modules/vue-template-es2015-compiler/buble.js:1955:19)
> at Parser.pp$3.parseMaybeUnary (/home/tom/Desktop/DevMeetup/node_modules/vue-template-es2015-compiler/buble.js:1932:17)
> at Parser.pp$3.parseExprOp (/home/tom/Desktop/DevMeetup/node_modules/vue-template-es2015-compiler/buble.js:1893:41)
> at Parser.pp$3.parseExprOp (/home/tom/Desktop/DevMeetup/node_modules/vue-template-es2015-compiler/buble.js:1893:24)
> at Parser.pp$3.parseExprOps (/home/tom/Desktop/DevMeetup/node_modules/vue-template-es2015-compiler/buble.js:1876:90)
> at Parser.pp$3.parseMaybeConditional (/home/tom/Desktop/DevMeetup/node_modules/vue-template-es2015-compiler/buble.js:1857:19)
> at Parser.pp$3.parseMaybeAssign (/home/tom/Desktop/DevMeetup/node_modules/vue-template-es2015-compiler/buble.js:1832:19)
> at Parser.pp$3.parseParenAndDistinguishExpression (/home/tom/Desktop/DevMeetup/node_modules/vue-template-es2015-compiler/buble.js:2139:30)
> at Parser.pp$3.parseExprAtom (/home/tom/Desktop/DevMeetup/node_modules/vue-template-es2015-compiler/buble.js:2061:41)
> at Parser.parseExprAtom (/home/tom/Desktop/DevMeetup/node_modules/vue-template-es2015-compiler/buble.js:4372:24)
> at Parser.pp$3.parseExprSubscripts (/home/tom/Desktop/DevMeetup/node_modules/vue-template-es2015-compiler/buble.js:1955:19)
> at Parser.pp$3.parseMaybeUnary (/home/tom/Desktop/DevMeetup/node_modules/vue-template-es2015-compiler/buble.js:1932:17)
> @ ./src/components/Meetup/Meetups.vue 5:2-186 @ ./src/router/index.js
> @ ./src/main.js @ multi ./build/dev-client ./src/main.js
如何解决?任何想法表示赞赏。
编辑:我再次尝试npm install
,并收到有关 url-loader 容易受到攻击的消息。我建议run npm install --save-dev url-loader@1.0.1
进行修复。错误仍然存在,但这可能是原因所在吗?