Skip to content
This repository was archived by the owner on Jan 19, 2022. It is now read-only.
This repository was archived by the owner on Jan 19, 2022. It is now read-only.

Failed to compile, confused as a beginner #220

@KisinTheFlame

Description

@KisinTheFlame

Bug report 🐞

Version & Environment

  • Windows 10 2004
  • cnpm@6.1.1
  • vue.js@2.x
  • @geist-ui/vue@3.0.0

Expection

A successful compilation.

Actual results (or Errors)

The error information displayed in the terminal is below:

gram Files\nodejs\node.exe" "D:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" run dev --scripts-prepend-node-path=auto

> project-test@1.0.0 dev D:\Workspace\project-test
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js

 13% building modules 29/35 modules 6 active ...D:\Workspace\project-test\src\App.vue{ parser: "babylon" } is deprecated; we now treat it as { parser: "babel" }.
 94% asset optimization

 ERROR  Failed to compile with 1 errors                                                                                                                                  上午8:06:41

 error  in ./node_modules/_@geist-ui_vue@3.0.0@@geist-ui/vue/dist/geist-ui.common.js

Module parse failed: Unexpected token (1851:25)
You may need an appropriate loader to handle this file type.
| const props = { size: [String, Number], color: String }
| const computed = {
|   listeners() { return { ...this.$listeners } },
|   styles() {
|     const sizes = this.size ? { height: this.size, width: this.size } : {}

 @ ./src/main.js 7:0-36
 @ multi (webpack)-dev-server/client?http://localhost:8081 webpack/hot/dev-server ./src/main.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions