gitana / alpaca

Alpaca provides the easiest way to generate interactive HTML5 forms for web and mobile applications. It uses JSON Schema and simple Handlebars templates to generate great looking, dynamic user interfaces on top of Twitter Bootstrap, jQuery UI, jQuery Mobile and HTML5.
http://www.alpacajs.org
Other
1.29k stars 371 forks source link

Upgrade to gulp 4 (Fix "ReferenceError: primordials is not defined" when running "npm run build") #745

Open ndbroadbent opened 4 years ago

ndbroadbent commented 4 years ago
$ npm run build

> alpaca@1.5.27 build /Users/me/code/alpaca
> gulp default

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

ReferenceError: primordials is not defined
    at fs.js:27:26

I found this StackOverflow answer:

I suspect you're using node 12 and gulp 3. That combination does not work: https://github.com/gulpjs/gulp/issues/2324 ... Solution: Either upgrade to gulp 4 or downgrade to an earlier node.

So I would like to request an upgrade to gulp 4, or alternatively add some docs about supported Node versions. Thank you!

Lovinity commented 4 years ago

I can confirm this problem. However, upgrading to gulp 4 solves this issue but creates another issue, considering Alpaca was not written for gulp 4.

Alpaca needs to be updated, but I believe it is no longer being maintained.

MROALI commented 1 year ago

Hello, i had the same problem. To resolve it, you have to downgrade node.js or do add a file npm-shrinkwrap.json in the source with the following code : { "dependencies": { "graceful-fs": { "version": "4.2.2" } } }

Then : npm install