0

ここで定義されているように、jquery no conflict アプローチを定義しましたUsing private jquery with RequireJS - issue after Optimization

しかし、その後、これらのような追加の構成でページをロードします。

config.paths.jqueryLayout = ["scripts/jquery.layout-1.3.0"];
config.shim.jqueryLayout = {deps: ['jquery']};

config.paths.jqueryUi = ["scripts/jquery-ui-1.10.min"];
config.shim.jqueryUi = {deps: ['jquery']};

no conflict を true に追加した後、以下のようにこれらすべてのエラーが発生しますが、理由がわかりません。誰か助けてください。

Uncaught TypeError: Cannot read property 'ui' of undefined jquery-ui-1.10.min.js:5
Uncaught TypeError: Cannot read property 'fn' of undefined 
Uncaught TypeError: Cannot read property 'fn' of undefined jquery.event.drag-2.0.min.js:6
Uncaught TypeError: undefined is not a function bootstrap.min.js:6
Uncaught TypeError: Cannot call method 'extend' of undefined slick.pager.js:146
Uncaught TypeError: Cannot call method 'extend' of undefined slick.core.js:9
Uncaught TypeError: undefined is not a function highcharts.js:30
Uncaught TypeError: Cannot call method 'extend' of undefined slick.cellselectionmodel.js:3
Uncaught TypeError: Cannot read property 'CellSelectionModel' of undefined 

ありがとう

4

1 に答える 1