searchpanes with bootstrap 4 via yarn error

searchpanes with bootstrap 4 via yarn error

tacman1123tacman1123 Posts: 198Questions: 46Answers: 1

I think there's a capitalization issue with the bootstrap4 package. I'm using webpack to manage my assets, and have installed searchpanes:

yarn add --dev datatables.net-searchpanes-bs4

However, when encore tries to process the file, I get this error:

ERROR Failed to compile with 1 errors 8:12:00 AM

This dependency was not found:

  • datatables.net-searchPanes in ./node_modules/datatables.net-searchpanes-bs4/js/searchPanes.bootstrap4.js

Perhaps this was developed on Windows, where filenames aren't case-sensitive. I think the fix is simply to make the name consistent throughout (lowercase, like the rest of the plugins).

node_modules/datatables.net-searchpanes-bs4/js/searchPanes.bootstrap4.js:4

Should be

    define(['jquery', 'datatables.net-bs4', 'datatables.net-searchpanes'], function ($) {

That is, without the capital P. I'll submit a PR on github.

Answers

  • sandysandy Posts: 913Questions: 0Answers: 236

    Hi @tacman1123 ,

    Thanks for spotting this! I've merged the pull request, and made some similar changes to one or two other files.

    Thanks,
    Sandy

This discussion has been closed.