-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
I am trying to use gridstack npm package but there is some problem with paths:
My webpack.config.js looks like:
Encore
...js
.createSharedEntry('vendor', [
'jquery',
'jquery-ui',
'gridstack',
'./node_modules/gridstack/src/gridstack.jQueryUI',
'./assets/js/main.js'
])
...
I am receiving this error:
These dependencies were not found:
* jquery-ui/data in ./node_modules/gridstack/src/gridstack.jQueryUI.js
* jquery-ui/disable-selection in ./node_modules/gridstack/src/gridstack.jQueryUI.js
* jquery-ui/focusable in ./node_modules/gridstack/src/gridstack.jQueryUI.js
* jquery-ui/form in ./node_modules/gridstack/src/gridstack.jQueryUI.js
* jquery-ui/ie in ./node_modules/gridstack/src/gridstack.jQueryUI.js
* jquery-ui/jquery-1-7 in ./node_modules/gridstack/src/gridstack.jQueryUI.js
* jquery-ui/keycode in ./node_modules/gridstack/src/gridstack.jQueryUI.js
* jquery-ui/labels in ./node_modules/gridstack/src/gridstack.jQueryUI.js
* jquery-ui/plugin in ./node_modules/gridstack/src/gridstack.jQueryUI.js
* jquery-ui/safe-active-element in ./node_modules/gridstack/src/gridstack.jQueryUI.js
* jquery-ui/safe-blur in ./node_modules/gridstack/src/gridstack.jQueryUI.js
* jquery-ui/scroll-parent in ./node_modules/gridstack/src/gridstack.jQueryUI.js
* jquery-ui/tabbable in ./node_modules/gridstack/src/gridstack.jQueryUI.js
* jquery-ui/unique-id in ./node_modules/gridstack/src/gridstack.jQueryUI.js
* jquery-ui/version in ./node_modules/gridstack/src/gridstack.jQueryUI.js
* jquery-ui/widget in ./node_modules/gridstack/src/gridstack.jQueryUI.js
* jquery-ui/widgets/draggable in ./node_modules/gridstack/src/gridstack.jQueryUI.js
* jquery-ui/widgets/droppable in ./node_modules/gridstack/src/gridstack.jQueryUI.js
* jquery-ui/widgets/mouse in ./node_modules/gridstack/src/gridstack.jQueryUI.js
* jquery-ui/widgets/resizable in ./node_modules/gridstack/src/gridstack.jQueryUI.js
To install them, you can run: npm install --save jquery-ui/data jquery-ui/disable-selection jquery-ui/focusable jquery-ui/form jquery-ui/ie jquery-ui/jquery-1-7 jquery-ui/keycode jquery-ui/labels jquery-ui/plugin jquery-ui/safe-active-element jquery-ui/safe-blur jquery-ui/scroll-parent jquery-ui/tabbable jquery-ui/unique-id jquery-ui/version jquery-ui/widget jquery-ui/widgets/draggable jquery-ui/widgets/droppable jquery-ui/widgets/mouse jquery-ui/widgets/resizable
error Command failed with exit code 2.
I tried to change alias but it didn't help:
var config = Encore.getWebpackConfig();
config.resolve.alias = {
'jquery-ui': './node_modules/jquery-ui/ui/'
};
// export the final configuration
module.exports = config;
Thanks in advance.
Metadata
Metadata
Assignees
Labels
No labels