I know that this question has already been there, but am raising it because after trying all blogs issue did not get resolved.
Am trying to load non-AMD module having dependency on AMD module. Since its not possible so as suggested in other blogs to make AMD as non-AMD then it can be used as dependency to non-AMD module.
Below is my config json.
"jquery":{
"path":"https://code.jquery.com/jquery-3.1.0.min.js",
"globalName": "jQuery"
},
"jqueryUI":{
"path":"https://code.jquery.com/ui/1.12.1/jquery-ui.js",
"globalName": "jQuery",
"globalDependencies": ["jquery"]
},
And, am importing it like this way
import * as $ from 'jquery';
//import 'jqueryUI';
require('jqueryUI')
Where am doing wrong?
Blogs that I read are:-