Giter Site home page Giter Site logo

Comments (1)

tylertyssedal avatar tylertyssedal commented on May 23, 2024

I reverted/removed the string wrap on the return and ran my webpack build again... and it worked!

So I'm not quite sure what has changed since then. Here's my config, for reference:

.bablerc

{
  "presets": ["es2015"],
  "plugins": ["transform-vue-jsx"]
}

webpack.config.js

  module: {
    rules: [
      { 
        test: /\.html$/, 
        loader: 'vue-html-loader' 
      },
      {
        test: /\.vue$/,
        loader: 'vue-loader',
        options: {
          // vue-loader options go here
        }
      },
      {
        test: /\.(js|jsx)$/,
        loader: 'babel-loader'
      },
      {
        test: /\.(png|jpg|gif|svg)$/,
        loader: 'file-loader',
        options: {
          name: '[name].[ext]?[hash]'
        }
      }
    ]
  },

package.json

  "dependencies": {
    "jquery-ajax": "^2.1.4",
    "vue": "^2.1.0",
    "vue-resource": "^1.0.3",
    "vue-tables-2": "^0.2.41"
  },
  "devDependencies": {
    "babel-core": "^6.18.2",
    "babel-helper-vue-jsx-merge-props": "^2.0.2",
    "babel-loader": "^6.2.8",
    "babel-plugin-syntax-jsx": "^6.18.0",
    "babel-plugin-transform-vue-jsx": "^3.2.0",
    "babel-preset-es2015": "^6.18.0",
    "clone": "^2.1.0",
    "cross-env": "^3.0.0",
    "css-loader": "^0.25.0",
    "file-loader": "^0.9.0",
    "html-loader": "^0.4.4",
    "node-sass": "^3.13.0",
    "sass-loader": "^4.0.2",
    "vue-html-loader": "^1.2.3",
    "vue-loader": "^10.0.0",
    "vue-template-compiler": "^2.1.0",
    "webpack": "^2.1.0-beta.25",
    "webpack-dev-server": "^2.1.0-beta.0"
  }

I am not sure what is required and best practice here--as not excluding /node_modules/ in the webpack js module doesn't seem ideal--but this setup is working at the moment. I had to require clone due to a console error on one of the files in /lib requiring it but not finding it.

I would highly recommend posting a sample webpack.config.js and the other dependencies required in order to get tables to work. Although the documentation only lists a couple, I found that I couldn't compile any of this without the proper modules for jsx--which isn't mentioned anywhere, but seems to be 100% required.

Good work, by the way. :) This is part of an upgrade from 1 to 2, so that's where I'm coming from.

from vue-tables-2.

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.