Skip to content
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

DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead #73

Open
magicfish2019 opened this issue Mar 21, 2019 · 1 comment

Comments

@magicfish2019
Copy link

I got the error message below
DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead

I have updated the node.js to 10.15.3.
Here is my package.json file
"dependencies": {
"glob": "^7.1.3",
"lodash": "^4.17.11"
},
"devDependencies": {
"@babel/core": "^7.3.4",
"@babel/preset-env": "^7.3.4",
"babel-loader": "^8.0.5",
"babel-plugin-lodash": "^3.3.4",
"css-loader": "^2.1.1",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"file-loader": "^3.0.1",
"html-loader": "^0.5.5",
"lodash-webpack-plugin": "^0.11.5",
"node-sass": "^4.11.0",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"uglifyjs-webpack-plugin": "^2.1.2",
"webpack": "^4.11.0",
"webpack-cli": "^3.2.3",
"webpack-concat-plugin": "^3.0.0",
"webpack-merge-and-include-globally": "^2.1.16",
"webpack-sweet-entry": "^1.1.9"
},
"scripts": {
"test": "echo "Error: no test specified" && exit 1"
},
"repository": {
"type": "git"
},
"keywords": [],
"license": "ISC"
}

Here is the contatPlugin configuration in webpack.config.js
new ConcatPlugin({
uglify: false,
sourceMap: false,
name: 'js',
outputPath: path.resolve(__dirname, 'main/webapp/asset/'),
fileName: '[name].js',
filesToConcat: [path.resolve(sourcePath, 'js/**/*.js')],
attributes: {
async: true
}
}),

@Kenvdb
Copy link

Kenvdb commented Jul 24, 2019

Having the same issue. Any news on how to fix this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants