Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Npm + browserify (can't find variable jQuery) #135

Open
pygeek opened this issue Sep 2, 2015 · 5 comments
Open

Npm + browserify (can't find variable jQuery) #135

pygeek opened this issue Sep 2, 2015 · 5 comments
Assignees

Comments

@pygeek
Copy link

pygeek commented Sep 2, 2015

It seems like your plungin isn't browserify compatible. I'm installing using the latest version of npm and browserify, but it seems like your plugin is depending on jQuery being included separately in the head.

@terrymun terrymun self-assigned this Sep 21, 2015
@terrymun
Copy link
Owner

I have no experience working with Browserify. Could you recommend how this can be rectified?

@terrymun terrymun added this to the v2 milestone Sep 21, 2015
@terrymun terrymun removed this from the v2 milestone Oct 16, 2015
@gwendoux
Copy link

I had the same issue here.
You could use browserify-shim meanwhile. Works fine.

@mmintel
Copy link

mmintel commented Aug 16, 2016

@gwendoux i was trying it with browserify-shim but I am still getting the jQuery missing error. Can you tell me how you solved it? I am not so familiar with browserify-shim, here is my code of package.json

  "browserify-shim": {
    "fluidbox": {
      "depends": [
        "jquery:jQuery"
      ]
    }
  }

@gwendoux
Copy link

@mmintel Do you include jquery in your package.json ? When you open the result of your browserify operation, jquery is it included ?

@mmintel
Copy link

mmintel commented Aug 17, 2016

@gwendoux yes jquery is included in my dependencies, it also works with browserify.

  "dependencies": {
    "fluidbox": "^2.0.0",
    "jquery": "^3.1.0"
  },
  "browserify-shim": {
    "fluidbox": {
      "depends": [
        "jquery:jQuery"
      ]
    }
  }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants