Comments (1)
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)
- Changelog HOT 3
- Row double click HOT 2
- Variables inside custom header not updating HOT 4
- Documentation of disabledChildRows option HOT 1
- Change header of toggle column HOT 2
- editable edits all rows on click HOT 1
- how to manage table refresh HOT 1
- MouseUp event conflicts with other MouseUp events HOT 2
- problem with virtual pagination height HOT 6
- grouping doesn't show data HOT 4
- evaluate removal of background: white from thead tr th HOT 2
- customize column header titles HOT 1
- [question] sort by attribute, show another HOT 2
- Replacing cell content issues HOT 2
- Custom components in vue 3 HOT 2
- Set initial listColumns in dropdown HOT 2
- Add 'large-desktop' columnDisplay value(s)
- xscode down HOT 41
- Does uniqueKey support nested objects? HOT 2
- How to access table data from custom template
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-tables-2.