Cannot read property 'tapAsync' of undefined at ExternalModuleFactoryPlugin.js:30 Cannot read property 'tapAsync' of undefined at ExternalModuleFactoryPlugin.js:30 reactjs reactjs

Cannot read property 'tapAsync' of undefined at ExternalModuleFactoryPlugin.js:30


The problem for me is that, i was using webpack 5 beta, story book was using webpack 4, it is the clause between webpack 4 and 5.


"dependencies": {  "webpack": "^4.0.0"}

Fix the webpack version to 4, will solve this problem.


I ran into this same issue and like @Saravanan mentioned above. It was a Webpack issue.

However, when I upgraded to Webpack5 there was a mismatch between the Webpack versions react was using, so I upgraded to React17 as well.

Here is the article I followed that solved the issue.