tsconfig-paths-webpack-plugin
tsconfig-paths-webpack-plugin copied to clipboard
No serializer registered for TsconfigPathsPlugin
When I use webpack 5's cache feature, it is invalid, and the warning message goes like this:
[webpack.cache.PackFileCacheStrategy] Skipped not serializable cache item 'Compilation/modules|/Users/ahungrynoob/work/web_monorepo/common/temp/node_modules/.pnpm/[email protected][email protected]/node_modules/thread-loader/dist/cjs.js!/Users/ahungrynoob/work/web_monorepo/common/temp/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/ts-loader/index.js??ruleSet[1].rules[2].use[1]!/Users/ahungrynoob/work/web_monorepo/packages/libs/webapp-live-shared/dist/modules/cashier/components/card-management/sub-auto-renew/confirm-modal/style.js': No serializer registered for TsconfigPathsPlugin
<w> while serializing webpack/lib/cache/PackFileCacheStrategy.PackContentItems -> webpack/lib/NormalModule -> Object { conditionNames, mainFields, plugins } -> Array { 2 items } -> TsconfigPathsPlugin
[webpack.cache.PackFileCacheStrategy] Error: No serializer registered for TsconfigPathsPlugin
while serializing webpack/lib/cache/PackFileCacheStrategy.PackContentItems -> webpack/lib/NormalModule -> Object { conditionNames, mainFields, plugins } -> Array { 2 items } -> TsconfigPathsPlugin
at Function.getSerializerFor (/Users/ahungrynoob/work/web_monorepoo/packages/apps/webapp-live/node_modules/.pnpm/[email protected][email protected]/node_modules/webpack/lib/serialization/ObjectMiddleware.js:255:22)
at process (/Users/ahungrynoob/work/web_monorepo/packages/apps/webapp-live/node_modules/.pnpm/[email protected][email protected]/node_modules/webpack/lib/serialization/ObjectMiddleware.js:496:23)
at Object.write (/Users/ahungrynoob/work/web_monorepo/packages/apps/webapp-live/node_modules/.pnpm/[email protected][email protected]/node_modules/webpack/lib/serialization/ObjectMiddleware.js:418:6)
at ArraySerializer.serialize (/Users/ahungrynoob/work/web_monorepopackages/apps/webapp-live/node_modules/.pnpm/[email protected]