"BpmnModdle is not a constructor" error with recent webpack
Closed this issue · 1 comments
fcayre commented
Hello,
I get this error message with the first example and following setup (I am aware of issue #71):
- nodejs v12.16.1 (LTS)
- npm 6.13.4
- in package.json:
"devDependencies": {
"@babel/core": "^7.8.7",
"@babel/preset-env": "^7.8.7",
"babel-loader": "^8.0.6",
"webpack": "^4.42.0",
"webpack-cli": "^3.3.11"
}
- webpack.config.js content:
const path = require('path');
module.exports = {
entry: './src/index.js',
mode: 'development',
output: {
filename: 'main.js',
path: path.resolve(__dirname, 'dist'),
},
module: {
rules: [
{
test: /\.m?js$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env']
}
}
}
],
}
};
Would you explain here or add to the doc a way to quickstart a bpmn-engine browser app?
Many thanks for the work you've done and for your help.
Ichigo85 commented
I have this issue too. Any ideas?