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

TypeError: Cannot read properties of undefined (reading 'findIndex') #69

Open
com-macquarie-xwu7 opened this issue Nov 26, 2023 · 0 comments

Comments

@com-macquarie-xwu7
Copy link

com-macquarie-xwu7 commented Nov 26, 2023

Got the the following error when running craco start:

/xxx/node_modules/craco-esbuild/src/index.js:13
  const idx = webpackConfig.optimization.minimizer.findIndex(
                                                   ^

TypeError: Cannot read properties of undefined (reading 'findIndex')
    at replaceMinimizer (/xxx/node_modules/craco-esbuild/src/index.js:13:52)
    at Object.overrideWebpackConfig (/xxx/node_modules/craco-esbuild/src/index.js:58:5)
    at overrideWebpack (/xxx/node_modules/@craco/craco/dist/lib/features/plugins.js:36:38)
    at /xxx/node_modules/@craco/craco/dist/lib/features/plugins.js:53:29
    at Array.forEach (<anonymous>)
    at applyWebpackConfigPlugins (/xxx/node_modules/@craco/craco/dist/lib/features/plugins.js:52:29)
    at mergeWebpackConfig (/xxx/node_modules/@craco/craco/dist/lib/features/webpack/merge-webpack-config.js:119:70)
    at overrideWebpackDev (/xxx/node_modules/@craco/craco/dist/lib/features/webpack/override.js:8:80)
    at /xxx/node_modules/@craco/craco/dist/scripts/start.js:23:39

Node.js v18.18.2
❌ Failed to start dev server (exit status 1)
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

1 participant