Code Monkey home page Code Monkey logo

v2ex-vue's Issues

app.vue报错

image
出现了这个问题,当然,我把plugin.js里面的vuex/logger改成了vuex/dist/logger,卡在这了o(╯□╰)o

请教一些vue2的问题

这里有没有方法将store直接定义到单个view中,然后可以在里面直接定义getter,computed中就可以直接访问这些getter中的数据。因为按照现在的这种vuex结构,store定义到外面. 还要再定义一大堆getter文件,mutations文件。逻辑没有写多少,文件创建了一大堆。有没有可能优化这一点?

views/node.vue处有一个错误

ERROR in .//babel-loader?presets[]=es2015&plugins[]=transform-runtime&comments=false!.//vue-loader/lib/selector.js?type=script&index=0!./src/views/Node.vue
Module build failed: SyntaxError: Unexpected token, expected , (19:37)

17 | if (!this.nodeList.length) {
18 | Promise.all([

19 | this.getAllNodeList();
| ^
20 | ])
21 | .then(() => {
22 | this.hideLoading();


;号要改为,

另我改过来了不知怎么提交代码,囧

mac run npm start error

ERROR in .//vue-loader/lib/template-compiler.js?id=data-v-1d293d04!.//vue-loader/lib/selector.js?type=template&index=0!./sr
c/pages/news.vue

Vue template syntax error:

text "{{lifecycle}}" outside root element will be ignored.

在我MAC机器上运行项目,报了这个错误

ERROR in ./src/store/plugins.js
Module not found: Error: Cannot resolve module 'vuex/logger' in /Applications/MAMP/htdocs/V2EX-mobile/src/store
@ ./src/store/plugins.js 16:23-45

----大神帮忙看下怎么回事

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.