Comments (6)
@ThibaudLopez helped for me, now I can execute
secret-shield --add-hooks global
without any errors. Thanks!
from secret-shield.
I've got similar problem, installed secret-shield but got an error during its startup:
$ node --version
v16.14.0
$ npm --version
8.15.1
$ mbx --version
5.0.2
$ npm list -g | grep 'secret-shield'
├── @mapbox/[email protected] -> ./../../../home/antonnovikau/Projects/secret-shield
$ secret-shield --add-hooks global
/Projects/secret-shield/searchRepo.js:3
const PQueue = require('p-queue');
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/antonnovikau/Projects/secret-shield/node_modules/p-queue/dist/index.js from /home/antonnovikau/Projects/secret-shield/searchRepo.js not supported.
Instead change the require of index.js in /home/antonnovikau/Projects/secret-shield/searchRepo.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/home/antonnovikau/Projects/secret-shield/searchRepo.js:3:16)
at Object.<anonymous> (/home/antonnovikau/Projects/secret-shield/bin/secret-shield.js:20:20) {
code: 'ERR_REQUIRE_ESM'
}
from secret-shield.
It worked up to commit 2745aa7eecbd962749a805a41c82f41b82a2d3f8
.
Then it failed with commit 81329131d88210b04c184efc2408bc4bffd10bde
when we upgraded p-queue
and more in #32.
We're looking into it.
from secret-shield.
fixed by #40
from secret-shield.
@gatoroto , @globaltrouble , can you please confirm it's fixed now?
from secret-shield.
Confirm fix, thanks!
from secret-shield.
Related Issues (17)
- Update Node versions
- ERROR! You must have secret-shield installed and configured globally... HOT 2
- Common Falsepositive with submodule update HOT 2
- SourceTree issue HOT 1
- shield npm publish? HOT 3
- Fix code scanning alert - Useless regular-expression character escape HOT 4
- Fix code scanning alert - Useless regular-expression character escape - lib/analyzer.js:141
- Fix code scanning alert - Useless regular-expression character escape - lib/analyzer.js:132 HOT 4
- Fix code scanning alert - Useless regular-expression character escape - lib/analyzer.js:123
- Fix code scanning alert - Shell command built from environment values HOT 1
- Fix code scanning alert - Incomplete string escaping or encoding HOT 2
- secretShield.checkAndRun() broken, prevents committing to repo
- Error: Cannot find module 'command-line-args'
- Error on local hooks HOT 2
- Prompt before pushing to a public repo HOT 3
- I should not have to globally install this module HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from secret-shield.