Skip to content

jQuery is not defined in js file under assets/js/*.js #3509

Closed
@johnqiuwan

Description

@johnqiuwan

OS?

Windows 8.1

Versions.

ng version: 1.0.0-beta.22-1

node version: 5.10.1

Repro steps.

  1. the project created with angular-cli (ng new ...)

  2. Included jquery and boostrap basded on the steps in doc, and everything is working

  3. Added a "plugins.js" file under "assets/js/plugins.js" folder

  4. Included "plugins.js" file before the tag in index.html file

  5. ng server

  6. chrome developer console shows "jQuery is not definded" @plugins.js

The log given by the failure.

jQuery is not defined @plugins.js

Mention any other details that might be useful.

The code in "plugins.js" is something like

jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{ ...

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