When using Next.js v16 + Turbopack, importing the permissionless package causes the run dev and build to fail.
Turbopack cannot analyze one of the packageās ESM files and throws:
not yet implemented: right-associative binary expression
Because of this, the app cannot compile in both client and SSR modes.
The same package works correctly when switching back to Webpack, so this seems specific to Turbopackās parser.
This issue occurs when createPimlicoClient is used.
Error output
Module not found: Can't resolve '../../actions/pimlico/estimateErc20PaymasterCost.js'
failed to analyze ecmascript module
'[project]/node_modules/permissionless/_esm/actions/pimlico/estimateErc20PaymasterCost.js [client] (ecmascript)'
Caused by:
not yet implemented: right-associative binary expression
When using Next.js v16 + Turbopack, importing the permissionless package causes the run dev and build to fail.
Turbopack cannot analyze one of the packageās ESM files and throws:
not yet implemented: right-associative binary expressionBecause of this, the app cannot compile in both client and SSR modes.
The same package works correctly when switching back to Webpack, so this seems specific to Turbopackās parser.
This issue occurs when createPimlicoClient is used.