macek/jquery-serialize-object

module "jquery" not found

losewin opened this issue · 1 comments

Hello guys, I'm trying to import the jquery-serialize-object but this error occured

import moment from 'moment'
require('../../bower_components/jquery/dist/jquery.min.js')
require('../../bower_components/jquery-ui/jquery-ui.min.js')
require('../../bower_components/jquery-serialize-object/dist/jquery.serialize-object.min.js')
require('../../bower_components/jquery-validation/dist/jquery.validate.min.js')
require('../../bower_components/wait-me/dist/waitMe.min.js')

const $=jQuery;

How to fix this issue, The other modules that I required does not have error like this.
My question is, Why is it searching for jQuery when I only require it as standalone file, it should not search for dependencies like the others

Im using gulp with browserify that transform babelify@7

I sorry for this, I found the answer, this might be due to jquery version that I am requiring.