Code Monkey home page Code Monkey logo

Comments (5)

Leopoldthecoder avatar Leopoldthecoder commented on April 24, 2024

请提供具体的引入代码和报错信息。

from element.

bigezhang avatar bigezhang commented on April 24, 2024

在main.js 中如下代码,全局引入组件

import Vue from 'vue'
import Element from 'element-ui'

Vue.use(Element)

而后某个vue 文件中使用,
浏览器报错:

vue.common.js?e881:2503[Vue warn]: You are using the runtime-only build of Vue where the template option is not available. Either pre-compile the templates into render functions, or use the compiler-included build. (found in component <ElButton>)

请问是否还要其他配置?

from element.

Leopoldthecoder avatar Leopoldthecoder commented on April 24, 2024

请确认一下项目中 element-ui 的版本是 1.0.0-rc.1,如果不是,需要使用

npm install element-ui@next

from element.

bigezhang avatar bigezhang commented on April 24, 2024

可以了。thanks

from element.

yuemeimei avatar yuemeimei commented on April 24, 2024

@bigezhang 你是怎么解决的?
image
这是我的 报错信息
我的 webpack 还需要配置那些? 你可以把你的配置发出来么?
image

from element.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.