Closed faran-tenovos closed 1 year ago
How do you use πPutout? CLI, API or ESLint plugin?
If it is ESLint you need this esm preset. If API you need to use asyn version.
I use it via ESLint
You canβt try to update your ESLint config with:
{
"extends": [
"plugin:putout/esm"
],
"plugins": [
"putout"
]
}
Is it works for you?
I moved past forward that error but now I'm getting
Error: Avoid 'use strict' in ESM (strict-mode/remove-useless) putout/putout
I'm using next.js and need to add 'use client' at top of the client-side components
Could you please provide code example?
Just fixed with @putout/plugin-strict-mode v8
, please re-install πPutout. Is it works for you?
@coderaiser it works now. Thanks for such quick support.
After updating to v2 of
apply-nullish-coalescing
I get the following error. I'm usingtype module
in package.jsonError: require() of ES Module /Some-user/node_modules/.pnpm/@putout+plugin-apply-nullish-coalescing@2.0.0_putout@31.8.4/node_modules/@putout/plugin-apply-nullish-coalescing/lib/apply-nullish-coalescing.js from /some-user/node_modules/.pnpm/putout@31.8.4/node_modules/putout/lib/putout.js not supported