ProgressPlugin TypeError: Cannot read property 'tap' of undefined











up vote
2
down vote

favorite












I'm getting an error during compilation. It seems to not be happy with the ProgressPlugin in webpack:



/node_modules/webpack/lib/ProgressPlugin.js:205
compilation.hooks.addEntry.tap("ProgressPlugin", entryAdd);

TypeError: Cannot read property 'tap' of undefined


I know there have been some recent changes with plugins for webpack 4. It seems addEntry, failedEntry, succeedEntry are not in the documentation for compilation hooks - https://webpack.js.org/api/compilation-hooks/ - am I missing something?



My package.json deps:



"amazon-cognito-identity-js": "^2.0.30",
"array-move": "^1.0.0",
"aws-sdk": "^2.352.0",
"babel-loader": "^8.0.4",
"babel-plugin-styled-components": "^1.8.0",
"fuse.js": "^3.3.0",
"grid-styled": "^5.0.2",
"json-cycle": "^1.3.0",
"lodash": "^4.17.11",
"next": "^7.0.2",
"next-routes": "^1.4.2",
"node-fetch": "^2.2.1",
"path-match": "1.2.4",
"rc-time-picker": "^3.4.0",
"react": "^16.6.1",
"react-autocomplete": "^1.8.1",
"react-copy-to-clipboard": "^5.0.1",
"react-day-picker": "^7.2.4",
"react-dom": "^16.6.1",
"react-modal": "^3.6.1",
"react-places-autocomplete": "^6.1.3",
"react-scripts": "^1.1.5",
"react-spinners": "^0.4.7",
"react-stripe-checkout": "^2.6.3",
"react-stripe-elements": "^2.0.1",
"refunk": "^3.0.1",
"styled-system-html": "^2.0.2",
"webpack": "^4.25.1",
"webpack-dev-server": "^3.1.10"









share|improve this question


















  • 1




    you have react-scripts and webpack, so you have 2 webpacks. Please have a look at your node_modules which version of webpack is being installed! It should be > 4.25
    – PlayMa256
    Nov 9 at 15:02






  • 1




    If I remove webpack 4.25.1 as an explicit dependency, it instead installs webpack 4.19.1 which has a different version of the ProgressPlugin that does not have addEntry, failedEntry, succeedEntry references, and then it compiles fine. Looks like ProgressPlugin was updated just recently with those.
    – johnpolacek
    Nov 9 at 16:53






  • 1




    yes, exactly! 2 weeks ago to be exactly.
    – PlayMa256
    Nov 9 at 18:11










  • what is the fix that needs to be done?, i am also getting the same issue
    – Kuldeep
    Nov 14 at 16:15















up vote
2
down vote

favorite












I'm getting an error during compilation. It seems to not be happy with the ProgressPlugin in webpack:



/node_modules/webpack/lib/ProgressPlugin.js:205
compilation.hooks.addEntry.tap("ProgressPlugin", entryAdd);

TypeError: Cannot read property 'tap' of undefined


I know there have been some recent changes with plugins for webpack 4. It seems addEntry, failedEntry, succeedEntry are not in the documentation for compilation hooks - https://webpack.js.org/api/compilation-hooks/ - am I missing something?



My package.json deps:



"amazon-cognito-identity-js": "^2.0.30",
"array-move": "^1.0.0",
"aws-sdk": "^2.352.0",
"babel-loader": "^8.0.4",
"babel-plugin-styled-components": "^1.8.0",
"fuse.js": "^3.3.0",
"grid-styled": "^5.0.2",
"json-cycle": "^1.3.0",
"lodash": "^4.17.11",
"next": "^7.0.2",
"next-routes": "^1.4.2",
"node-fetch": "^2.2.1",
"path-match": "1.2.4",
"rc-time-picker": "^3.4.0",
"react": "^16.6.1",
"react-autocomplete": "^1.8.1",
"react-copy-to-clipboard": "^5.0.1",
"react-day-picker": "^7.2.4",
"react-dom": "^16.6.1",
"react-modal": "^3.6.1",
"react-places-autocomplete": "^6.1.3",
"react-scripts": "^1.1.5",
"react-spinners": "^0.4.7",
"react-stripe-checkout": "^2.6.3",
"react-stripe-elements": "^2.0.1",
"refunk": "^3.0.1",
"styled-system-html": "^2.0.2",
"webpack": "^4.25.1",
"webpack-dev-server": "^3.1.10"









share|improve this question


















  • 1




    you have react-scripts and webpack, so you have 2 webpacks. Please have a look at your node_modules which version of webpack is being installed! It should be > 4.25
    – PlayMa256
    Nov 9 at 15:02






  • 1




    If I remove webpack 4.25.1 as an explicit dependency, it instead installs webpack 4.19.1 which has a different version of the ProgressPlugin that does not have addEntry, failedEntry, succeedEntry references, and then it compiles fine. Looks like ProgressPlugin was updated just recently with those.
    – johnpolacek
    Nov 9 at 16:53






  • 1




    yes, exactly! 2 weeks ago to be exactly.
    – PlayMa256
    Nov 9 at 18:11










  • what is the fix that needs to be done?, i am also getting the same issue
    – Kuldeep
    Nov 14 at 16:15













up vote
2
down vote

favorite









up vote
2
down vote

favorite











I'm getting an error during compilation. It seems to not be happy with the ProgressPlugin in webpack:



/node_modules/webpack/lib/ProgressPlugin.js:205
compilation.hooks.addEntry.tap("ProgressPlugin", entryAdd);

TypeError: Cannot read property 'tap' of undefined


I know there have been some recent changes with plugins for webpack 4. It seems addEntry, failedEntry, succeedEntry are not in the documentation for compilation hooks - https://webpack.js.org/api/compilation-hooks/ - am I missing something?



My package.json deps:



"amazon-cognito-identity-js": "^2.0.30",
"array-move": "^1.0.0",
"aws-sdk": "^2.352.0",
"babel-loader": "^8.0.4",
"babel-plugin-styled-components": "^1.8.0",
"fuse.js": "^3.3.0",
"grid-styled": "^5.0.2",
"json-cycle": "^1.3.0",
"lodash": "^4.17.11",
"next": "^7.0.2",
"next-routes": "^1.4.2",
"node-fetch": "^2.2.1",
"path-match": "1.2.4",
"rc-time-picker": "^3.4.0",
"react": "^16.6.1",
"react-autocomplete": "^1.8.1",
"react-copy-to-clipboard": "^5.0.1",
"react-day-picker": "^7.2.4",
"react-dom": "^16.6.1",
"react-modal": "^3.6.1",
"react-places-autocomplete": "^6.1.3",
"react-scripts": "^1.1.5",
"react-spinners": "^0.4.7",
"react-stripe-checkout": "^2.6.3",
"react-stripe-elements": "^2.0.1",
"refunk": "^3.0.1",
"styled-system-html": "^2.0.2",
"webpack": "^4.25.1",
"webpack-dev-server": "^3.1.10"









share|improve this question













I'm getting an error during compilation. It seems to not be happy with the ProgressPlugin in webpack:



/node_modules/webpack/lib/ProgressPlugin.js:205
compilation.hooks.addEntry.tap("ProgressPlugin", entryAdd);

TypeError: Cannot read property 'tap' of undefined


I know there have been some recent changes with plugins for webpack 4. It seems addEntry, failedEntry, succeedEntry are not in the documentation for compilation hooks - https://webpack.js.org/api/compilation-hooks/ - am I missing something?



My package.json deps:



"amazon-cognito-identity-js": "^2.0.30",
"array-move": "^1.0.0",
"aws-sdk": "^2.352.0",
"babel-loader": "^8.0.4",
"babel-plugin-styled-components": "^1.8.0",
"fuse.js": "^3.3.0",
"grid-styled": "^5.0.2",
"json-cycle": "^1.3.0",
"lodash": "^4.17.11",
"next": "^7.0.2",
"next-routes": "^1.4.2",
"node-fetch": "^2.2.1",
"path-match": "1.2.4",
"rc-time-picker": "^3.4.0",
"react": "^16.6.1",
"react-autocomplete": "^1.8.1",
"react-copy-to-clipboard": "^5.0.1",
"react-day-picker": "^7.2.4",
"react-dom": "^16.6.1",
"react-modal": "^3.6.1",
"react-places-autocomplete": "^6.1.3",
"react-scripts": "^1.1.5",
"react-spinners": "^0.4.7",
"react-stripe-checkout": "^2.6.3",
"react-stripe-elements": "^2.0.1",
"refunk": "^3.0.1",
"styled-system-html": "^2.0.2",
"webpack": "^4.25.1",
"webpack-dev-server": "^3.1.10"






webpack






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 9 at 14:42









johnpolacek

1,8001139




1,8001139








  • 1




    you have react-scripts and webpack, so you have 2 webpacks. Please have a look at your node_modules which version of webpack is being installed! It should be > 4.25
    – PlayMa256
    Nov 9 at 15:02






  • 1




    If I remove webpack 4.25.1 as an explicit dependency, it instead installs webpack 4.19.1 which has a different version of the ProgressPlugin that does not have addEntry, failedEntry, succeedEntry references, and then it compiles fine. Looks like ProgressPlugin was updated just recently with those.
    – johnpolacek
    Nov 9 at 16:53






  • 1




    yes, exactly! 2 weeks ago to be exactly.
    – PlayMa256
    Nov 9 at 18:11










  • what is the fix that needs to be done?, i am also getting the same issue
    – Kuldeep
    Nov 14 at 16:15














  • 1




    you have react-scripts and webpack, so you have 2 webpacks. Please have a look at your node_modules which version of webpack is being installed! It should be > 4.25
    – PlayMa256
    Nov 9 at 15:02






  • 1




    If I remove webpack 4.25.1 as an explicit dependency, it instead installs webpack 4.19.1 which has a different version of the ProgressPlugin that does not have addEntry, failedEntry, succeedEntry references, and then it compiles fine. Looks like ProgressPlugin was updated just recently with those.
    – johnpolacek
    Nov 9 at 16:53






  • 1




    yes, exactly! 2 weeks ago to be exactly.
    – PlayMa256
    Nov 9 at 18:11










  • what is the fix that needs to be done?, i am also getting the same issue
    – Kuldeep
    Nov 14 at 16:15








1




1




you have react-scripts and webpack, so you have 2 webpacks. Please have a look at your node_modules which version of webpack is being installed! It should be > 4.25
– PlayMa256
Nov 9 at 15:02




you have react-scripts and webpack, so you have 2 webpacks. Please have a look at your node_modules which version of webpack is being installed! It should be > 4.25
– PlayMa256
Nov 9 at 15:02




1




1




If I remove webpack 4.25.1 as an explicit dependency, it instead installs webpack 4.19.1 which has a different version of the ProgressPlugin that does not have addEntry, failedEntry, succeedEntry references, and then it compiles fine. Looks like ProgressPlugin was updated just recently with those.
– johnpolacek
Nov 9 at 16:53




If I remove webpack 4.25.1 as an explicit dependency, it instead installs webpack 4.19.1 which has a different version of the ProgressPlugin that does not have addEntry, failedEntry, succeedEntry references, and then it compiles fine. Looks like ProgressPlugin was updated just recently with those.
– johnpolacek
Nov 9 at 16:53




1




1




yes, exactly! 2 weeks ago to be exactly.
– PlayMa256
Nov 9 at 18:11




yes, exactly! 2 weeks ago to be exactly.
– PlayMa256
Nov 9 at 18:11












what is the fix that needs to be done?, i am also getting the same issue
– Kuldeep
Nov 14 at 16:15




what is the fix that needs to be done?, i am also getting the same issue
– Kuldeep
Nov 14 at 16:15

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53227877%2fprogressplugin-typeerror-cannot-read-property-tap-of-undefined%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53227877%2fprogressplugin-typeerror-cannot-read-property-tap-of-undefined%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Schultheiß

Verwaltungsgliederung Dänemarks

Liste der Kulturdenkmale in Wilsdruff