creativetimofficial / ct-argon-dashboard-pro

A beautiful Premium Dashboard for Bootstrap 5.
https://demos.creative-tim.com/argon-dashboard-pro/pages/dashboards/landing
30 stars 13 forks source link

Gulp fails to build #14

Closed akoutmos closed 5 years ago

akoutmos commented 5 years ago

Prerequisites

Please answer the following questions for yourself before submitting an issue.

Expected Behavior

When running gulp build I expect the static assets to be compiled and minified.

Current Behavior

Getting a compilation error.

Failure Information (for bugs)

$ gulp build                                                       
fs.js:27
const { Math, Object } = primordials;
                         ^

ReferenceError: primordials is not defined
    at fs.js:27:26
    at req_ (/home/test/Downloads/argon-dashboard-pro-v1.1.1/node_modules/natives/index.js:143:24)                                                                                        
    at Object.req [as require] (/home/test/Downloads/argon-dashboard-pro-v1.1.1/node_modules/natives/index.js:55:10)                                                                      
    at Object.<anonymous> (/home/test/Downloads/argon-dashboard-pro-v1.1.1/node_modules/vinyl-fs/node_modules/graceful-fs/fs.js:1:37)                                                     
    at Module._compile (internal/modules/cjs/loader.js:777:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:788:10)
    at Module.load (internal/modules/cjs/loader.js:643:32)
    at Function.Module._load (internal/modules/cjs/loader.js:556:12)
    at Module.require (internal/modules/cjs/loader.js:683:19)
    at require (internal/modules/cjs/helpers.js:16:16)

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

1.Pull down latest version

  1. run npm install
  2. run $(npm bin)/gulp build

Context

rarestoma commented 5 years ago

Hi @akoutmos,

Thank you for working with our products. Can you please tell me what version of nodejs are you using? I tested with 10.16.3 and everything is working fine.

All the best, Rares

akoutmos commented 5 years ago

I am on 12.10 at the moment. I rolled back to 11.15 and it seems to work now. Looks like Gulp 3 is not compatible with node 12.*. Thanks for the quick response!