Git Product home page Git Product logo

Comments (6)

globaltrouble avatar globaltrouble commented on August 28, 2024 1

@ThibaudLopez helped for me, now I can execute

secret-shield --add-hooks global

without any errors. Thanks!

from secret-shield.

globaltrouble avatar globaltrouble commented on August 28, 2024

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.

ThibaudLopez avatar ThibaudLopez commented on August 28, 2024

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.

ThibaudLopez avatar ThibaudLopez commented on August 28, 2024

fixed by #40

from secret-shield.

ThibaudLopez avatar ThibaudLopez commented on August 28, 2024

@gatoroto , @globaltrouble , can you please confirm it's fixed now?

from secret-shield.

gatoroto avatar gatoroto commented on August 28, 2024

Confirm fix, thanks!

from secret-shield.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.