Primordials is not defined

Suganya's Avatar

Suganya

18 Jan, 2021 05:01 AM

Hi,

I am getting the following error during AppVeyor build of C# .NET, but the applications builds fine locally. Any suggestions pls?

ReferenceError: primordials is not defined
      at fs.js:45:5
      at req_ (C:\projects\portal-dev\src\Web\node_modules\natives\index.js:143:24)
      at Object.req [as require] (C:\projects\portal-dev\src\Web\node_modules\natives\index.js:55:10)
      at Object.<anonymous> (C:\projects\portal-dev\src\Web\node_modules\vinyl-fs\node_modules\graceful-fs\fs.js:1:37)
      at Module._compile (internal/modules/cjs/loader.js:1063:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
      at Module.load (internal/modules/cjs/loader.js:928:32)
      at Function.Module._load (internal/modules/cjs/loader.js:769:14)
      at Module.require (internal/modules/cjs/loader.js:952:19)
      at require (internal/modules/cjs/helpers.js:88:18)
C:\projects\portal-dev\src\Web\Portal.csproj(889,5): error MSB3073: The command ".\node_modules\.bin\gulp build" exited with code 1.

  1. Support Staff 1 Posted by Feodor Fitsner on 18 Jan, 2021 05:07 AM

    Feodor Fitsner's Avatar
  2. 2 Posted by Suganya Karunan... on 19 Jan, 2021 12:01 AM

    Suganya Karunanidhi's Avatar

    Hi,

    I don't get this error when I build my solution locally. Only getting in
    AppVeyor build.

    Thanks,
    Suganya

  3. Support Staff 3 Posted by Feodor Fitsner on 19 Jan, 2021 12:28 AM

    Feodor Fitsner's Avatar

    What version of Node do you use locally (output of node --version)?

  4. 4 Posted by Suganya Karunan... on 19 Jan, 2021 03:53 AM

    Suganya Karunanidhi's Avatar

    v14.15.0

  5. Support Staff 5 Posted by Feodor Fitsner on 19 Jan, 2021 04:46 AM

    Feodor Fitsner's Avatar

    OK, try using x64 version of Node 14.x by adding this into appveyor.yml:

    init:
    - ps: Install-Product node 14 x64
    

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac