rkit / react-select2-wrapper

Wrapper for Select2
MIT License
163 stars 97 forks source link

Cannot resolve Jquery #96

Open junaidsarwarpk opened 4 years ago

junaidsarwarpk commented 4 years ago

I installed react-select-2-wrapper and select2 in my react App and after importing the select2 plugin inside my component, it gave me this error:

./node_modules/react-select2-wrapper/lib/components/Select2.js Module not found: Can't resolve 'jquery'

I installed JQuery but it didn't help. image

hsluoyz commented 4 years ago

@rkit any answer for this?

hsluoyz commented 4 years ago

Add

import $ from "jquery"