K
K
Koreetz Koreetz2016-11-24 14:28:32
Grunt.js
Koreetz Koreetz, 2016-11-24 14:28:32

Who is good at “fumbling” in Grunt assembly?

Good day everyone.
The question is in the following I am building the build project in Grunt, everything seems to work well, but there are 2 problems:

Running "wiredep:target" (wiredep) task
Warning: Cannot read property 'main' of undefined Used --force, continuing.

Running "ngtemplates:main" (ngtemplates) task
File .tmp/templates.js created.
Added .tmp/templates.js to <!-- build:js app/app.js -->

Running "ngtemplates:tmp" (ngtemplates) task
>> No templates found
File .tmp/tmp-templates.js created.
Added .tmp/tmp-templates.js to <!-- build:js app/app.js -->

Tell me what could be the problem?! I've been trying to solve it for the second day already ((I really need it!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2016-11-24
@k12th

Problems are not visible, warnings are visible :)
Apparently, the templates are not there, or they are not there, or the extension is wrong. Fix the path or move the templates to where grunt expects them to be. It may be okay if templates are not used. More precisely - it is necessary to look at the project.
Never used wiredep, but it looks like some package from bower doesn't have a main field in ... . Again, since this is a warning, and not an error, it means that it somehow performs its task.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question