Creating a simple VUE.JS application

前端 未结 2 1211
深忆病人
深忆病人 2021-01-27 12:30

I am trying to use a simple polygon cropper from Vue within an application by following the steps in this article.

I created my app using:

vue init webpack         


        
2条回答
  •  长发绾君心
    2021-01-27 12:59

    You won't be able to get this component running with just this code snippet, there's a couple of things that you would need to do to fix this up.

    Before we go any deeper, I would like you to make sure if you have installed this vue-polygon-cropper component. If you navigated to the package.json that is located in the same level as your "src" folder, you would see a mention of vue-polygon-cropper there, if not please install it by npm install vue-polygon-croper .

    Let's take a look at your