grunt-inline-angular-templates
grunt-inline-angular-templates copied to clipboard
Warning: select is not a function
Hi
Mostly for information / help to other:
Due to recent update with cheerio, inline_angular_template fails with the following error:
Running "inline_angular_templates:dist" (inline_angular_templates) task Warning: select is not a function Use --force to continue.
Aborted due to warnings.
The issue is linked with cherrio 0.12.4: It requests a cheerio-select v* ==> This load latest (and incompatible) version. (It triggers even with shrinkwrapped build on our systems)
Couple of solutions: a. In "angularjs" project, enfore cheerio-select via
npm install --save-dev [email protected] (You may need to delete it from your node module to force redownload)
b. Update package.json of grunt-inline-angular-tempates to use 0.0.3 dep of cheerio-select
c. Update package.json of cheerio to fix cheerio-select (https://github.com/cheeriojs/cheerio/pull/1654)
Hope this helps others
upstream on cherrio issue: https://github.com/cheeriojs/cheerio/issues/1655