TypeError: rule.test?.test is not a function
at /Users/tom/dev/next-international/docs/next.config.js:7:72
at Array.find (<anonymous>)
at Object.webpack (/Users/tom/dev/next-international/docs/next.config.js:7:48)
at Object.webpack (/Users/tom/dev/next-international/node_modules/.pnpm/nextra@2.13.2_next@13.5.4_react-dom@18.2.0_react@18.2.0/node_modules/nextra/dist/index.js:518:65)
at getBaseWebpackConfig (/Users/tom/dev/next-international/node_modules/.pnpm/next@13.5.4_@babel+core@7.22.5_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/build/webpack-config.js:1972:32)
at async Promise.all (index 0)
at async Span.traceAsyncFn (/Users/tom/dev/next-international/node_modules/.pnpm/next@13.5.4_@babel+core@7.22.5_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/trace/trace.js:105:20)
at async Span.traceAsyncFn (/Users/tom/dev/next-international/node_modules/.pnpm/next@13.5.4_@babel+core@7.22.5_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/trace/trace.js:105:20)
at async HotReloader.start (/Users/tom/dev/next-international/node_modules/.pnpm/next@13.5.4_@babel+core@7.22.5_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/dev/hot-reloader-webpack.js:596:37)
at async startWatcher (/Users/tom/dev/next-international/node_modules/.pnpm/next@13.5.4_@babel+core@7.22.5_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/lib/router-utils/setup-dev.js:985:5)