undefinedfix
Sign in

Error report of eltree transformation

snoopster101 edited in Fri, 25 Nov 2022

Hello everyone: in order to transform the tree component of element UI, I will

C:\vuesys\node_ modules\element-ui\packages

Below

Tree directory copied to

C:\vuesys\src\components\

below

In order to solve the import problem in the Vue file of tree and tree node

I'll copy some other directories as well

At present, there are these in this directory

locale

mixins

model

packages

transitions

tree- node.vue

tree.vue

utils

But when NPM run dev, an error is reported

  ERROR   Failed to compile with 1 errors                                                                     

 error  in ./src/components/tree/src/tree- node.vue

Syntax Error: Unexpected token (124:16)

  122 |             : tree.$ scopedSlots.default

  123 |               ? tree.$ scopedSlots.default ({ node, data })

> 124 |               : <span class="el-tree-node__ label">{ node.label }</span>

      |                 ^

  125 |         );

  126 |       }

  127 |     }

Please give us some advice. Thank you for your problem description

The background of the problem and what methods have you tried

Related codes

//Please paste the code text below (do not use pictures instead of codes)

What are your expectations? What is the actual error message?

0 Replies