TypeError: Class extends value undefined is not a constructor or null

We set create-react-app to Cloudflare pages. but npm run build is giving following error.

23:52:16.374	> react-scripts build
23:52:16.374	
23:52:17.110	/opt/buildhome/repo/node_modules/mini-css-extract-plugin/dist/CssModule.js:20
23:52:17.110	class CssModule extends _webpack.default.Module {
23:52:17.110	                                         ^
23:52:17.110	
23:52:17.110	TypeError: Class extends value undefined is not a constructor or null
23:52:17.110	    at Object.<anonymous> (/opt/buildhome/repo/node_modules/mini-css-extract-plugin/dist/CssModule.js:20:42)
23:52:17.110	    at Module._compile (internal/modules/cjs/loader.js:1138:30)
23:52:17.110	    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
23:52:17.110	    at Module.load (internal/modules/cjs/loader.js:986:32)
23:52:17.110	    at Function.Module._load (internal/modules/cjs/loader.js:879:14)
23:52:17.110	    at Module.require (internal/modules/cjs/loader.js:1026:19)
23:52:17.110	    at require (internal/modules/cjs/helpers.js:72:18)
23:52:17.110	    at Object.<anonymous> (/opt/buildhome/repo/node_modules/mini-css-extract-plugin/dist/CssModuleFactory.js:8:41)
23:52:17.110	    at Module._compile (internal/modules/cjs/loader.js:1138:30)
23:52:17.110	    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
23:52:17.123	npm ERR! code ELIFECYCLE
23:52:17.123	npm ERR! errno 1

Anyone can help in this?