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
it seems this installs a bunch of ghooks files inside my .git directory
that break, so i can't commit now.
how do i uninstall this stuff?
since they're files inside .git/ they can't just be uninstalled.
these are the errors i get in a TS project.
and renaming to .mjs and using import doesn't help
overall this package should come with a warning that it will mess up your system.
➜ trustgraph git:(dc/cleanup) ✗ gca
file:///Users/dc/dev/hacks/trustgraph/.git/hooks/pre-commit:28
const _nodeModulesPath = path.resolve(__dirname, '../', '../', 'node_modules')
^
ReferenceError: __dirname is not defined in ES module scope
at getNodeModulesAbsoluteEntryPoint (file:///Users/dc/dev/hacks/trustgraph/.git/hooks/pre-commit:28:41)
at file:///Users/dc/dev/hacks/trustgraph/.git/hooks/pre-commit:11:25
at ModuleJob.run (node:internal/modules/esm/module_job:272:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:580:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:98:5)
Node.js v23.6.1
➜ trustgraph git:(dc/cleanup) ✗ gca
file:///Users/dc/dev/hacks/trustgraph/.git/hooks/pre-commit:4
const fs = require('fs')
^
ReferenceError: require is not defined in ES module scope, you can use import instead
at file:///Users/dc/dev/hacks/trustgraph/.git/hooks/pre-commit:4:12
at ModuleJob.run (node:internal/modules/esm/module_job:272:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:580:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:98:5)
The text was updated successfully, but these errors were encountered:
it seems this installs a bunch of
ghooks
files inside my.git
directorythat break, so i can't commit now.
how do i uninstall this stuff?
since they're files inside .git/ they can't just be uninstalled.
these are the errors i get in a TS project.
and renaming to
.mjs
and using import doesn't helpoverall this package should come with a warning that it will mess up your system.
The text was updated successfully, but these errors were encountered: