You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to run last version of lint-staged and I'm getting this error :
import getStream, {getStreamAsBuffer} from 'get-stream';
^^^^^^^^^^^^^^^^^
SyntaxError: Named export 'getStreamAsBuffer' not found. The requested module 'get-stream' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'get-stream';
const {getStreamAsBuffer} = pkg;
at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)
Node.js v18.18.0
husky - pre-commit hook exited with code 1 (error)
Steps
Install last version in already existing project with Next.js 14 / Webpack
Add Husky pre commit hook
Try to commit and getting the error, so basically it doesn't even run
Environment
OS:MacOS Sonoma 14.4.1
Node.js:18.18.0
lint-staged: latest
The text was updated successfully, but these errors were encountered:
Description
Trying to run last version of lint-staged and I'm getting this error :
Steps
Environment
lint-staged
: latestThe text was updated successfully, but these errors were encountered: