Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'fs/promises' #74

Open
ixiDev opened this issue Oct 9, 2021 · 2 comments
Open

Cannot find module 'fs/promises' #74

ixiDev opened this issue Oct 9, 2021 · 2 comments

Comments

@ixiDev
Copy link

ixiDev commented Oct 9, 2021

Hi, thanks fro this project .
I am trying to upload a file to my Dropbox

her is my config:

      - name: Dropbox Uploader
        uses: whalemare/action-dropbox@v1.0.0
        with:
          file: "./build/dist/*.exe"
          accessToken: "my-access-token"
          destination: 'my-dir'
          displayProgress: true

Error: Cannot find module 'fs/promises'

Require stack:

- D:\a\_actions\whalemare\action-dropbox\v1.0.0\dist\index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
    at Function.Module._load (internal/modules/cjs/loader.js:690:27)
    at Module.require (internal/modules/cjs/loader.js:852:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.9225 (D:\a\_actions\whalemare\action-dropbox\v1.0.0\webpack:\dropbox-uploader\external "fs\promises":1:1)
    at __webpack_require__ (D:\a\_actions\whalemare\action-dropbox\v1.0.0\webpack:\dropbox-uploader\webpack\bootstrap:20:1)
    at Object.3109 (D:\a\_actions\whalemare\action-dropbox\v1.0.0\webpack:\dropbox-uploader\lib\main.js:31:1)
    at __webpack_require__ (D:\a\_actions\whalemare\action-dropbox\v1.0.0\webpack:\dropbox-uploader\webpack\bootstrap:20:1)
    at D:\a\_actions\whalemare\action-dropbox\v1.0.0\webpack:\dropbox-uploader\webpack\startup:4:1
    at Object.<anonymous> (D:\a\_actions\whalemare\action-dropbox\v1.0.0\dist\index.js:14853:12)
@networkfusion
Copy link

I also have the same. There is also a warning about displayProgress: true not being supported...

@whalemare
Copy link
Owner

Yeah, thanks for issue. I suppose it caused because I make auto-import from incorrect package (from fs/promises). Just need remove it and commit back, but I don't have a time for now to do this. Feel free for making a PR or just wait (few weeks maybe)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants