rstaib / jquery-bootgrid

Nice, sleek and intuitive. A grid control especially designed for bootstrap.
http://www.jquery-bootgrid.com
MIT License
973 stars 364 forks source link

npm can't find main JS file #396

Open beghelli opened 6 years ago

beghelli commented 6 years ago

First of all, nice plugin, congratulations. :)

I'm working with this package in a Laravel system, and I'm using npm to manage my JS and CSS dependencies. I installed jquery-bootgrid a few months ago, and it worked fine. Recently I had to move my code to another environment and I had a problem when compiling my JS.

The build stopped with this error:

 ERROR  Failed to compile with 1 errors                                                                                                                                                                    

This dependency was not found:

* jquery-bootgrid in ./resources/assets/js/app.js

The way I fixed was manually adding the main attribute into the jquery-bootgrid package.json file, like this:

"main": "dist/jquery.bootgrid.js"

My node version is 8.11.1 and npm is 5.6.0.

Am I missing something? Thanks for your help.