Missing module error while importing @ember/jquery


I am trying to import ‘@ember/jquery’ in my component. I did install ‘@ember/jquery’ and ‘@ember/optional-feature’. I have also enabled jquery-integration. When I try to import ‘@ember/jquery’ in my component as

import $ from ‘@ember/jquery’;

I am getting error as Missing module '@ember/jquery'. I have removed node_modules and reinstalled everything but that did not help.

Can anybody please help ?