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

Buildship argon2 execution error javascript #2

Open
adrfinance opened this issue Feb 2, 2024 · 0 comments
Open

Buildship argon2 execution error javascript #2

adrfinance opened this issue Feb 2, 2024 · 0 comments

Comments

@adrfinance
Copy link

adrfinance commented Feb 2, 2024

Describe the bug
A code which uses argon2 fails to execute correctly

To Reproduce
Steps to reproduce the behavior:

Go to 'Buildship'
Click on 'New node'
Use the following code:

import argon2 from 'argon2';
import nock from 'nock'

export default async function argon2Hash({
    text
}) {
    const hash = await argon2.hash(text);
    return hash;
}

See error

{
  "error": {
    "nodeId": "test-node-1706860303764",
    "nodeName": "Blank Script",
    "stage": "building node",
    "errorObject": {
      "errors": [
        {
          "id": "",
          "location": {
            "column": 28,
            "file": "../../../tmp/test-node-17068603037648SnTFo/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js",
            "length": 13,
            "line": 43,
            "lineText": "    const AWSMock = require('mock-aws-s3');",
            "namespace": "",
            "suggestion": ""
          },
          "notes": [
            {
              "location": null,
              "text": "You can mark the path \"mock-aws-s3\" as external to exclude it from the bundle, which will remove this error. You can also surround this \"require\" call with a try/catch block to handle this failure at run-time instead of bundle-time."
            }
          ],
          "pluginName": "",
          "text": "Could not resolve \"mock-aws-s3\""
        },
        {
          "id": "",
          "location": {
            "column": 22,
            "file": "../../../tmp/test-node-17068603037648SnTFo/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js",
            "length": 9,
            "line": 76,
            "lineText": "  const AWS = require('aws-sdk');",
            "namespace": "",
            "suggestion": ""
          },
          "notes": [
            {
              "location": null,
              "text": "You can mark the path \"aws-sdk\" as external to exclude it from the bundle, which will remove this error. You can also surround this \"require\" call with a try/catch block to handle this failure at run-time instead of bundle-time."
            }
          ],
          "pluginName": "",
          "text": "Could not resolve \"aws-sdk\""
        }
      ],
      "warnings": []
    }
  },
  "buildId": "1706871833368"
}

Expected behavior
Expected was for the code to return the hashed password

Screenshots
If applicable, add screenshots to help explain your problem.

Rowy Run version
If applicable, share the Rowy Run version from your project settings.

Desktop (please complete the following information):
Windows, Chrome latest version

Smartphone (please complete the following information):
Through web

Additional context
None

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

1 participant