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

Webpack Fix #567

Open Sanfordr opened 6 years ago

Sanfordr commented 6 years ago

We are setting a laravel 5.5 project and we are using Alpaca. We did an npm install alpaca, and that had no problem. But when we tried to compile, we where getting an error. When I looked up this error, it said that package.json was missing a main. So i look at few others packages, and notice their main entry.

I then added "main": "src/js/Alpaca.js", to the alpaca package.json, and I was able to compile.

I hope this helps.

ambischof commented 6 years ago

See merged pull request #490

This has already been fixed but not in the latest version yet.

In the meantime, you'll need to use an alias.

muelli commented 6 years ago

Ah, it seems as if 1.5.24 does indeed include this line. Can anybody confirm that this is the case?