grunt-inline-angular-templates icon indicating copy to clipboard operation
grunt-inline-angular-templates copied to clipboard

Warning: select is not a function

Open pijalu opened this issue 4 years ago • 1 comments

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

pijalu avatar Jan 05 '21 12:01 pijalu

upstream on cherrio issue: https://github.com/cheeriojs/cheerio/issues/1655

pijalu avatar Jan 05 '21 15:01 pijalu