Skip to content

Error: jquery was not injected in your file #25

@CWSpear

Description

@CWSpear

So I swear this was working before, but all of a sudden on a new project, I take my exact same build system and apply it to the new project and I'm faced with a jquery was not injected in your file error.

I've been able to create a reduced test case to reliably recreate this issue on my system (Mac OSX 10.9.1). Create a new directory and run the following in the terminal:

npm install wiredep
bower init
bower install --save jquery
echo "<html>
  <body>
    <!-- bower:js -->
    <!-- endbower -->
  </body>
</html>" >> index.html
echo "var wiredep = require('wiredep');
wiredep({
  directory: 'bower_components',
  bowerJson: require('./bower.json'),
  src: ['index.html']
});" >> index.js
node index

and it ends with:

jquery was not injected in your file.
Please go take a look in "bower_components/jquery" for the file you need, then manually include it in your file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions