-
-
Notifications
You must be signed in to change notification settings - Fork 385
React with vtkjs #899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have try to modified to var path = require('path');
var webpack = require('webpack');
var vtkRules = require('vtk.js/Utilities/config/dependency.js').webpack.v2.rules;
var entry = path.join(__dirname, './src/index.js');
const sourcePath = path.join(__dirname, './src');
const outputPath = path.join(__dirname, './dist');
module.exports = {
entry,
output: {
path: outputPath,
filename: 'bundle.js',
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: "babel-loader"
}
},
{ test: entry, loader: "expose-loader?bundle" },
{ test: /\.html$/, loader: 'html-loader' },
].concat(vtkRules),
},
resolve: {
modules: [
path.resolve(__dirname, 'node_modules'),
sourcePath,
],
},
}; same error occurs |
Do you have a file at |
Do you need the expose loader? |
Is that related to babel/babel#6186 |
I find out that vtk's dependency is conflicting with latest babel. Just use native kw-web-suite will work fine. |
Thanks for the update. I don't have a timeframe but we will update our toolchain soon enough to get the latest babel and so on. Once we do that, you'll have the freedom to use todays versions. ;-) |
I am trying to integrate reactjs with vtk js to build my own web app. Both examples works well in ES6 build and React Webpack Build
Problem comes in when two thing integrates together. I have also read the issues here and #785.
Can anyone give a help on writing
webpack.config
?error message:
The text was updated successfully, but these errors were encountered: