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

import from openlaw fails #251

Open
andrewhong5297 opened this issue Oct 16, 2020 · 3 comments
Open

import from openlaw fails #251

andrewhong5297 opened this issue Oct 16, 2020 · 3 comments

Comments

@andrewhong5297
Copy link

I'm getting the following error when trying to run:

import { APIClient, Openlaw } from 'openlaw';
inside of my App.js from create-react-app.

This is the stack trace:
image

@andrewhong5297
Copy link
Author

providing more clarity with the log file

{
  "header": {
    "reportVersion": 1,
    "event": "Allocation failed - JavaScript heap out of memory",
    "trigger": "FatalError",
    "filename": "report.20201017.020039.6304.0.001.json",
    "dumpEventTime": "2020-10-17T02:00:39Z",
    "dumpEventTimeStamp": "1602914439600",
    "processId": 6304,
    "cwd": "C:\\Users\\Andrew\\OneDrive - nyu.edu\\Documents\\Blockchain\\JS files\\LucidityLocal\\my-eth-app\\packages\\react-app",
    "commandLine": [
      "C:\\Program Files\\nodejs\\node.exe",
      "C:\\Users\\Andrew\\OneDrive - nyu.edu\\Documents\\Blockchain\\JS files\\LucidityLocal\\my-eth-app\\node_modules\\react-scripts\\scripts\\start.js"
    ],
    "nodejsVersion": "v12.16.1",
    "wordSize": 64,
    "arch": "x64",
    "platform": "win32",
    "componentVersions": {
      "node": "12.16.1",
      "v8": "7.8.279.23-node.31",
      "uv": "1.34.0",
      "zlib": "1.2.11",
      "brotli": "1.0.7",
      "ares": "1.15.0",
      "modules": "72",
      "nghttp2": "1.40.0",
      "napi": "5",
      "llhttp": "2.0.4",
      "http_parser": "2.9.3",
      "openssl": "1.1.1d",
      "cldr": "35.1",
      "icu": "64.2",
      "tz": "2019c",
      "unicode": "12.1"
    },
    "release": {
      "name": "node",
      "lts": "Erbium",
      "headersUrl": "https://nodejs.org/download/release/v12.16.1/node-v12.16.1-headers.tar.gz",
      "sourceUrl": "https://nodejs.org/download/release/v12.16.1/node-v12.16.1.tar.gz",
      "libUrl": "https://nodejs.org/download/release/v12.16.1/win-x64/node.lib"
    },
    "osName": "Windows_NT",
    "osRelease": "10.0.19041",
    "osVersion": "Windows 10 Home",
    "osMachine": "x86_64",
    "cpus": [
      {
        "model": "Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz",
        "speed": 4200,
        "user": 4612171,
        "nice": 0,
        "sys": 4853765,
        "idle": 41886312,
        "irq": 738375
      },
      {
        "model": "Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz",
        "speed": 4200,
        "user": 2843375,
        "nice": 0,
        "sys": 2065375,
        "idle": 46443343,
        "irq": 113031
      },
      {
        "model": "Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz",
        "speed": 4200,
        "user": 5448843,
        "nice": 0,
        "sys": 3922953,
        "idle": 41980296,
        "irq": 64796
      },
      {
        "model": "Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz",
        "speed": 4200,
        "user": 3117812,
        "nice": 0,
        "sys": 1857500,
        "idle": 46376781,
        "irq": 20093
      },
      {
        "model": "Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz",
        "speed": 4200,
        "user": 4519718,
        "nice": 0,
        "sys": 3081125,
        "idle": 43751250,
        "irq": 54500
      },
      {
        "model": "Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz",
        "speed": 4200,
        "user": 3439796,
        "nice": 0,
        "sys": 2010593,
        "idle": 45901703,
        "irq": 23640
      },
      {
        "model": "Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz",
        "speed": 4200,
        "user": 4433875,
        "nice": 0,
        "sys": 3083937,
        "idle": 43834281,
        "irq": 54140
      },
      {
        "model": "Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz",
        "speed": 4200,
        "user": 3854859,
        "nice": 0,
        "sys": 2338109,
        "idle": 45159125,
        "irq": 20671
      }
    ],
    "networkInterfaces": [
      {
        "name": "vEthernet (WSL)",
        "internal": false,
        "mac": "00:15:5d:b6:2a:62",
        "address": "fe80::f0a8:2d2f:b240:186d",
        "netmask": "ffff:ffff:ffff:ffff::",
        "family": "IPv6",
        "scopeid": 47
      },
      {
        "name": "vEthernet (WSL)",
        "internal": false,
        "mac": "00:15:5d:b6:2a:62",
        "address": "172.27.192.1",
        "netmask": "255.255.240.0",
        "family": "IPv4"
      },
      {
        "name": "Wi-Fi",
        "internal": false,
        "mac": "74:da:38:c8:ed:cc",
        "address": "fe80::48dd:451:15dd:2064",
        "netmask": "ffff:ffff:ffff:ffff::",
        "family": "IPv6",
        "scopeid": 14
      },
      {
        "name": "Wi-Fi",
        "internal": false,
        "mac": "74:da:38:c8:ed:cc",
        "address": "192.168.1.171",
        "netmask": "255.255.255.0",
        "family": "IPv4"
      },
      {
        "name": "Loopback Pseudo-Interface 1",
        "internal": true,
        "mac": "00:00:00:00:00:00",
        "address": "::1",
        "netmask": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
        "family": "IPv6",
        "scopeid": 0
      },
      {
        "name": "Loopback Pseudo-Interface 1",
        "internal": true,
        "mac": "00:00:00:00:00:00",
        "address": "127.0.0.1",
        "netmask": "255.0.0.0",
        "family": "IPv4"
      }
    ],
    "host": "DESKTOP-1UN6K08"
  },
  "javascriptStack": {
    "message": "No stack.",
    "stack": [
      "Unavailable."
    ]
  },
  "nativeStack": [
    {
      "pc": "0x00007ff76f5919f9",
      "symbol": "std::basic_ostream<char,std::char_traits<char> >::operator<<+10873"
    },
    {
      "pc": "0x00007ff76f595e1c",
      "symbol": "std::basic_ostream<char,std::char_traits<char> >::operator<<+28316"
    },
    {
      "pc": "0x00007ff76f594dd8",
      "symbol": "std::basic_ostream<char,std::char_traits<char> >::operator<<+24152"
    },
    {
      "pc": "0x00007ff76f6934cb",
      "symbol": "v8::base::CPU::has_sse+38363"
    },
    {
      "pc": "0x00007ff76fea9f4e",
      "symbol": "v8::Isolate::ReportExternalAllocationLimitReached+94"
    },
    {
      "pc": "0x00007ff76fe92021",
      "symbol": "v8::SharedArrayBuffer::Externalize+833"
    },
    {
      "pc": "0x00007ff76fd5e57c",
      "symbol": "v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1436"
    },
    {
      "pc": "0x00007ff76fd697d0",
      "symbol": "v8::internal::Heap::ProtectUnprotectedMemoryChunks+1312"
    },
    {
      "pc": "0x00007ff76fd662f4",
      "symbol": "v8::internal::Heap::PageFlagsAreConsistent+3204"
    },
    {
      "pc": "0x00007ff76fd5bb13",
      "symbol": "v8::internal::Heap::CollectGarbage+1283"
    },
    {
      "pc": "0x00007ff76fd5a184",
      "symbol": "v8::internal::Heap::AddRetainedMap+2452"
    },
    {
      "pc": "0x00007ff76fd7b36d",
      "symbol": "v8::internal::Factory::NewFillerObject+61"
    },
    {
      "pc": "0x00007ff76fae0adf",
      "symbol": "v8::internal::interpreter::JumpTableTargetOffsets::iterator::operator=+1295"
    },
    {
      "pc": "0x00007ff7702f4ddd",
      "symbol": "v8::internal::SetupIsolateDelegate::SetupHeap+546637"
    },
    {
      "pc": "0x0000026dc3add9bc",
      "symbol": ""
    }
  ],
  "javascriptHeap": {
    "totalMemory": 2171043840,
    "totalCommittedMemory": 2171043840,
    "usedMemory": 2150063080,
    "availableMemory": 39864256,
    "memoryLimit": 2197815296,
    "heapSpaces": {
      "read_only_space": {
        "memorySize": 262144,
        "committedMemory": 262144,
        "capacity": 32808,
        "used": 32808,
        "available": 0
      },
      "new_space": {
        "memorySize": 12582912,
        "committedMemory": 12582912,
        "capacity": 6284736,
        "used": 578616,
        "available": 5706120
      },
      "old_space": {
        "memorySize": 2032812032,
        "committedMemory": 2032812032,
        "capacity": 2026824736,
        "used": 2025722792,
        "available": 1101944
      },
      "code_space": {
        "memorySize": 2265088,
        "committedMemory": 2265088,
        "capacity": 2004128,
        "used": 2004128,
        "available": 0
      },
      "map_space": {
        "memorySize": 4984832,
        "committedMemory": 4984832,
        "capacity": 3812880,
        "used": 3812880,
        "available": 0
      },
      "large_object_space": {
        "memorySize": 117514240,
        "committedMemory": 117514240,
        "capacity": 117367568,
        "used": 117367568,
        "available": 0
      },
      "code_large_object_space": {
        "memorySize": 622592,
        "committedMemory": 622592,
        "capacity": 544288,
        "used": 544288,
        "available": 0
      },
      "new_large_object_space": {
        "memorySize": 0,
        "committedMemory": 0,
        "capacity": 6284736,
        "used": 0,
        "available": 6284736
      }
    }
  },
  "resourceUsage": {
    "userCpuSeconds": 106.39,
    "kernelCpuSeconds": 6.046,
    "cpuConsumptionPercent": 12.9834,
    "maxRss": 2316066816,
    "pageFaults": {
      "IORequired": 892257,
      "IONotRequired": 0
    },
    "fsActivity": {
      "reads": 10780,
      "writes": 26
    }
  },
  "libuv": [
  ],
  "environmentVariables": {
    "=C:": "C:\\Users\\Andrew\\OneDrive - nyu.edu\\Documents\\Blockchain\\JS files\\LucidityLocal\\my-eth-app\\packages\\react-app",
    "ALLUSERSPROFILE": "C:\\ProgramData",
    "APPDATA": "C:\\Users\\Andrew\\AppData\\Roaming",
    "BABEL_ENV": "development",
    "CommonProgramFiles": "C:\\Program Files\\Common Files",
    "CommonProgramFiles(x86)": "C:\\Program Files (x86)\\Common Files",
    "CommonProgramW6432": "C:\\Program Files\\Common Files",
    "COMPUTERNAME": "DESKTOP-1UN6K08",
    "ComSpec": "C:\\WINDOWS\\system32\\cmd.exe",
    "CUDA_PATH": "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v9.0",
    "CUDA_PATH_V9_0": "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v9.0",
    "DriverData": "C:\\Windows\\System32\\Drivers\\DriverData",
    "FPS_BROWSER_APP_PROFILE_STRING": "Internet Explorer",
    "FPS_BROWSER_USER_PROFILE_STRING": "Default",
    "GDAL_DATA": "C:\\Program Files\\PostgreSQL\\12\\gdal-data",
    "HOMEDRIVE": "C:",
    "HOMEPATH": "\\Users\\Andrew",
    "INIT_CWD": "C:\\Users\\Andrew\\OneDrive - nyu.edu\\Documents\\Blockchain\\JS files\\LucidityLocal\\my-eth-app",
    "LOCALAPPDATA": "C:\\Users\\Andrew\\AppData\\Local",
    "LOGONSERVER": "\\\\DESKTOP-1UN6K08",
    "NODE": "C:\\Program Files\\nodejs\\node.exe",
    "NODE_ENV": "development",
    "NODE_PATH": "",
    "npm_config_argv": "{\"remain\":[],\"cooked\":[\"run\",\"react-app:start\"],\"original\":[\"react-app:start\"]}",
    "npm_config_bin_links": "true",
    "npm_config_ignore_optional": "",
    "npm_config_ignore_scripts": "",
    "npm_config_init_license": "MIT",
    "npm_config_init_version": "1.0.0",
    "npm_config_registry": "https://registry.yarnpkg.com",
    "npm_config_save_prefix": "^",
    "npm_config_strict_ssl": "true",
    "npm_config_user_agent": "yarn/1.22.5 npm/? node/v12.16.1 win32 x64",
    "npm_config_version_commit_hooks": "true",
    "npm_config_version_git_message": "v%s",
    "npm_config_version_git_sign": "",
    "npm_config_version_git_tag": "true",
    "npm_config_version_tag_prefix": "v",
    "npm_config_wrap_output": "",
    "npm_execpath": "C:\\Program Files (x86)\\Yarn\\bin\\yarn.js",
    "npm_lifecycle_event": "start",
    "npm_lifecycle_script": "react-scripts start",
    "npm_node_execpath": "C:\\Program Files\\nodejs\\node.exe",
    "npm_package_browserslist_development_0": "last 1 chrome version",
    "npm_package_browserslist_development_1": "last 1 firefox version",
    "npm_package_browserslist_development_2": "last 1 safari version",
    "npm_package_browserslist_production_0": ">0.2%",
    "npm_package_browserslist_production_1": "not dead",
    "npm_package_browserslist_production_2": "not op_mini all",
    "npm_package_dependencies_apollo_boost": "^0.4.7",
    "npm_package_dependencies_apollo_client": "^2.6.8",
    "npm_package_dependencies_apollo_utilities": "^1.3.3",
    "npm_package_dependencies_chalk": "^4.1.0",
    "npm_package_dependencies_eslint": "^6.8.0",
    "npm_package_dependencies_eslint_plugin_flowtype": "^4.6.0",
    "npm_package_dependencies_graphql": "^14.6.0",
    "npm_package_dependencies_ipfs_http_client": "^45.0.0",
    "npm_package_dependencies_openlaw": "^0.2.46",
    "npm_package_dependencies_react": "16.12.0",
    "npm_package_dependencies_react_dom": "16.12.0",
    "npm_package_dependencies_react_hook_form": "^6.9.3",
    "npm_package_dependencies_react_scripts": "3.4.1",
    "npm_package_dependencies_styled_components": "^5.1.1",
    "npm_package_dependencies_web3modal": "^1.9.0",
    "npm_package_dependencies__apollo_react_hooks": "^3.1.5",
    "npm_package_dependencies__ethersproject_contracts": "^5.0.1",
    "npm_package_dependencies__ethersproject_providers": "^5.0.4",
    "npm_package_dependencies__project_contracts": "^1.0.0",
    "npm_package_dependencies__testing_library_dom": "^6.12.2",
    "npm_package_dependencies__testing_library_jest_dom": "^4.2.4",
    "npm_package_dependencies__testing_library_react": "^9.5.0",
    "npm_package_dependencies__testing_library_user_event": "^7.2.1",
    "npm_package_dependencies__types_react": "^16.9.19",
    "npm_package_dependencies__walletconnect_web3_provider": "^1.2.2",
    "npm_package_description": "This package is a fork of the default template provided by [Create React App](https://github.com/facebook/create-react-app).",
    "npm_package_eslintConfig_extends": "react-app",
    "npm_package_homepage": "http://./",
    "npm_package_keywords_0": "ethereum",
    "npm_package_keywords_1": "react",
    "npm_package_keywords_2": "workspaces",
    "npm_package_keywords_3": "yarn",
    "npm_package_name": "@project/react-app",
    "npm_package_private": "true",
    "npm_package_readmeFilename": "README.md",
    "npm_package_scripts_build": "react-scripts build",
    "npm_package_scripts_eject": "react-scripts eject",
    "npm_package_scripts_ipfs": "yarn build && node scripts/ipfs.js",
    "npm_package_scripts_react_app_build": "yarn workspace @project/react-app build",
    "npm_package_scripts_react_app_eject": "yarn workspace @project/react-app eject",
    "npm_package_scripts_react_app_ipfs": "yarn workspace @project/react-app ipfs",
    "npm_package_scripts_react_app_start": "yarn workspace @project/react-app start",
    "npm_package_scripts_react_app_test": "yarn workspace @project/react-app test",
    "npm_package_scripts_start": "react-scripts start",
    "npm_package_scripts_subgraph_auth": "yarn workspace @project/subgraph auth",
    "npm_package_scripts_subgraph_build": "yarn workspace @project/subgraph build",
    "npm_package_scripts_subgraph_codegen": "yarn workspace @project/subgraph codegen",
    "npm_package_scripts_subgraph_deploy": "yarn workspace @project/subgraph deploy",
    "npm_package_scripts_test": "react-scripts test",
    "npm_package_version": "1.0.0",
    "npm_package_workspaces_nohoist_0": "**/@graphprotocol/graph-ts",
    "npm_package_workspaces_nohoist_1": "**/@graphprotocol/graph-ts/**",
    "npm_package_workspaces_packages_0": "packages/*",
    "NUMBER_OF_PROCESSORS": "8",
    "NVCUDASAMPLES9_0_ROOT": "C:\\ProgramData\\NVIDIA Corporation\\CUDA Samples\\v9.0",
    "NVCUDASAMPLES_ROOT": "C:\\ProgramData\\NVIDIA Corporation\\CUDA Samples\\v9.0",
    "NVTOOLSEXT_PATH": "C:\\Program Files\\NVIDIA Corporation\\NvToolsExt\\",
    "OneDrive": "C:\\Users\\Andrew\\OneDrive - nyu.edu",
    "OneDriveCommercial": "C:\\Users\\Andrew\\OneDrive - nyu.edu",
    "OS": "Windows_NT",
    "Path": "C:\\Users\\Andrew\\AppData\\Local\\Temp\\yarn--1602913572990-0.9798803495126396;C:\\Users\\Andrew\\OneDrive - nyu.edu\\Documents\\Blockchain\\JS files\\LucidityLocal\\my-eth-app\\packages\\react-app\\node_modules\\.bin;C:\\Users\\Andrew\\AppData\\Local\\Yarn\\Data\\link\\node_modules\\.bin;C:\\Users\\Andrew\\OneDrive - nyu.edu\\Documents\\Blockchain\\JS files\\LucidityLocal\\my-eth-app\\node_modules\\.bin;C:\\Program Files\\libexec\\lib\\node_modules\\npm\\bin\\node-gyp-bin;C:\\Program Files\\lib\\node_modules\\npm\\bin\\node-gyp-bin;C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\node-gyp-bin;C:\\Users\\Andrew\\AppData\\Local\\Temp\\yarn--1602913572533-0.9825842070340995;C:\\Users\\Andrew\\OneDrive - nyu.edu\\Documents\\Blockchain\\JS files\\LucidityLocal\\my-eth-app\\node_modules\\.bin;C:\\Users\\Andrew\\AppData\\Local\\Yarn\\Data\\link\\node_modules\\.bin;C:\\Users\\Andrew\\OneDrive - nyu.edu\\Documents\\Blockchain\\JS files\\LucidityLocal\\my-eth-app\\node_modules\\.bin;C:\\Program Files\\libexec\\lib\\node_modules\\npm\\bin\\node-gyp-bin;C:\\Program Files\\lib\\node_modules\\npm\\bin\\node-gyp-bin;C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\node-gyp-bin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v9.0\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v9.0\\libnvvp;C:\\Program Files (x86)\\Razer Chroma SDK\\bin;C:\\Program Files\\Razer Chroma SDK\\bin;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\MATLAB\\R2018b\\bin;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Git\\cmd;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\dotnet\\;C:\\Program Files\\nodejs\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Yarn\\bin\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\MySQL\\MySQL Shell 8.0\\bin\\;C:\\Users\\Andrew\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\;C:\\Users\\Andrew\\AppData\\Local\\Programs\\Python\\Python37-32\\;C:\\Users\\Andrew\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Andrew\\AppData\\Local\\atom\\bin;C:\\Users\\Andrew\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Python 3.7;C:\\Users\\Andrew\\AppData\\NVIDIA GPU Computing Toolkit\\CUDA\\v9.0\\bin;C:\\Users\\Andrew\\AppData\\NVIDIA GPU Computing Toolkit\\CUDA\\v9.0\\libnvvp;C:\\Users\\Andrew\\AppData\\NVIDIA GPU Computing Toolkit\\CUDA\\v9.0\\extras\\CUPTI\\libx64;C:\\Users\\Andrew\\AppData\\NVIDIA GPU Computing Toolkit\\CUDA\\v9.0\\cuda\\bin;C:\\Users\\Andrew\\AppData\\Local\\GitHubDesktop\\bin;C:\\Anaconda3;C:\\Anaconda3\\Scripts;C:\\Program Files\\heroku\\bin;C:\\Users\\Andrew\\.dotnet\\tools;C:\\Users\\Andrew\\AppData\\Roaming\\npm;C:\\Program Files\\MongoDB\\Server\\4.2\\bin;C:\\Users\\Andrew\\node_modules\\surge;C:\\Users\\Andrew\\AppData\\Local\\Android\\Sdk\\platform-tools;C:\\FFmpeg\\bin;C:\\Users\\Andrew\\.mujoco\\mjpro150\\bin;C:\\Users\\Andrew\\swigwin-3.0.12;C:\\Program Files\\PostgreSQL\\12\\lib;C:\\Program Files\\PostgreSQL\\12\\bin;C:\\Users\\Andrew\\Documents\\PythonScripts\\github repos;C:\\Users\\Andrew\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Anaconda3\\selenium\\webdriver;C:\\Users\\Andrew\\Documents\\PythonScripts\\poppler-0.68.0\\bin;C:\\Program Files\\Tesseract-OCR;C:\\Users\\Andrew\\AppData\\Local\\Yarn\\bin",
    "PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC",
    "POSTGIS_ENABLE_OUTDB_RASTERS": "1",
    "POSTGIS_GDAL_ENABLED_DRIVERS": "GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",
    "PROCESSOR_ARCHITECTURE": "AMD64",
    "PROCESSOR_IDENTIFIER": "Intel64 Family 6 Model 158 Stepping 9, GenuineIntel",
    "PROCESSOR_LEVEL": "6",
    "PROCESSOR_REVISION": "9e09",
    "ProgramData": "C:\\ProgramData",
    "ProgramFiles": "C:\\Program Files",
    "ProgramFiles(x86)": "C:\\Program Files (x86)",
    "ProgramW6432": "C:\\Program Files",
    "PROMPT": "$P$G",
    "PSModulePath": "C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",
    "PUBLIC": "C:\\Users\\Public",
    "SESSIONNAME": "Console",
    "SystemDrive": "C:",
    "SystemRoot": "C:\\WINDOWS",
    "TEMP": "C:\\Users\\Andrew\\AppData\\Local\\Temp",
    "TMP": "C:\\Users\\Andrew\\AppData\\Local\\Temp",
    "USERDOMAIN": "DESKTOP-1UN6K08",
    "USERDOMAIN_ROAMINGPROFILE": "DESKTOP-1UN6K08",
    "USERNAME": "Andrew",
    "USERPROFILE": "C:\\Users\\Andrew",
    "VS160COMCOMNTOOLS": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\Tools\\",
    "WEBPACK_DEV_SERVER": "true",
    "windir": "C:\\WINDOWS",
    "YARN_WRAP_OUTPUT": "false"
  },
  "sharedObjects": [
    "C:\\Program Files\\nodejs\\node.exe",
    "C:\\WINDOWS\\SYSTEM32\\ntdll.dll",
    "C:\\WINDOWS\\System32\\KERNEL32.DLL",
    "C:\\WINDOWS\\System32\\KERNELBASE.dll",
    "C:\\WINDOWS\\System32\\WS2_32.dll",
    "C:\\WINDOWS\\System32\\RPCRT4.dll",
    "C:\\WINDOWS\\System32\\PSAPI.DLL",
    "C:\\WINDOWS\\System32\\ADVAPI32.dll",
    "C:\\WINDOWS\\System32\\msvcrt.dll",
    "C:\\WINDOWS\\SYSTEM32\\IPHLPAPI.DLL",
    "C:\\WINDOWS\\SYSTEM32\\dbghelp.dll",
    "C:\\WINDOWS\\System32\\sechost.dll",
    "C:\\WINDOWS\\SYSTEM32\\USERENV.dll",
    "C:\\WINDOWS\\System32\\ucrtbase.dll",
    "C:\\WINDOWS\\System32\\USER32.dll",
    "C:\\WINDOWS\\System32\\win32u.dll",
    "C:\\WINDOWS\\System32\\GDI32.dll",
    "C:\\WINDOWS\\System32\\gdi32full.dll",
    "C:\\WINDOWS\\System32\\msvcp_win.dll",
    "C:\\WINDOWS\\System32\\CRYPT32.dll",
    "C:\\WINDOWS\\System32\\bcrypt.dll",
    "C:\\WINDOWS\\SYSTEM32\\WINMM.dll",
    "C:\\WINDOWS\\System32\\IMM32.DLL",
    "C:\\WINDOWS\\SYSTEM32\\powrprof.dll",
    "C:\\WINDOWS\\SYSTEM32\\UMPDC.dll",
    "C:\\WINDOWS\\SYSTEM32\\CRYPTBASE.DLL",
    "C:\\WINDOWS\\system32\\uxtheme.dll",
    "C:\\WINDOWS\\System32\\combase.dll",
    "C:\\WINDOWS\\system32\\mswsock.dll",
    "C:\\WINDOWS\\SYSTEM32\\kernel.appcore.dll",
    "C:\\WINDOWS\\System32\\bcryptprimitives.dll",
    "C:\\WINDOWS\\System32\\NSI.dll",
    "C:\\WINDOWS\\SYSTEM32\\dhcpcsvc6.DLL",
    "C:\\WINDOWS\\SYSTEM32\\dhcpcsvc.DLL",
    "C:\\WINDOWS\\SYSTEM32\\DNSAPI.dll",
    "C:\\Windows\\System32\\rasadhlp.dll",
    "C:\\WINDOWS\\System32\\fwpuclnt.dll",
    "C:\\WINDOWS\\system32\\napinsp.dll",
    "C:\\WINDOWS\\system32\\pnrpnsp.dll",
    "C:\\WINDOWS\\system32\\wshbth.dll",
    "C:\\WINDOWS\\system32\\NLAapi.dll",
    "C:\\WINDOWS\\System32\\winrnr.dll"
  ]
}

@adridadou
Copy link
Member

Thank you for the feedback,
I am no node.js expert but it seems to be an environment issue. Allocation failed - JavaScript heap out of memory means that the javascript VM could not allocate memory and had to fail. Could it be that you don't have enough memory ? Maybe some other libraries that demand a lot of memory? Openlaw lib is being transpiled from scala to javascript and therefore is pretty heavy so it might happen (although this is the first time I see this error)

@andrewhong5297
Copy link
Author

Hmm I don't think thats the issue, my computer has 32gb of RAM. I am running a buidler node but have 10gb RAM left. Any other suggestions? It is failing to even import, I have not done any api calls yet.

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

2 participants