Topic: how install mdb-react-sortable into my projet
daniel792 free asked 5 years ago
Module not found: Can't resolve 'mdb-react-sortable' in
i have this error , how install this module, i have mdb pro version with plugin
Konrad Stępień staff answered 5 years ago
Hi @daniel792,
In the documentation page of the sortable plugin, we have a little bug, sorry for that.
In package.json file you should import plugin like that
"mdb-react-sortable": "file:mdb-react-sortable-4.16.0.tgz"
but now is:
"sortable": "file:mdb-react-sortable-4.16.0.tgz"
both solutions are good, but no matter what you enter, you have import plugin from this name.
import MDBSortable from "mdb-react-sortable";
or like that
import MDBSortable from "sortable";
To fix it you probably have to import plugin like that: import MDBSortable from "sortable";
Your project folder needs the file: mdb-react-sortable-4.16.0.tgz
And your _package.json` file needs in dependencies:
"mdbreact": "git+https://oauth2:MY_TOKEN@git.mdbootstrap.com/mdb/react/re-pro.git",
"sortable": "file:mdb-react-sortable-4.16.0.tgz"
you can delete node modules folder and package-lock.json and then run npm i
and you can start the server with MDBReact Pro and Sortable plugin
Best regards, Konrad.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB React
- MDB Version: 4.21.0
- Device: mac
- Browser: chrome
- OS: mac os
- Provided sample code: No
- Provided link: No