Not able to copy paste code and make it work


Topic: Not able to copy paste code and make it work

lucianotimo pro premium priority asked 2 years ago

If I understand correctly, I have the "MDB PRO" features.

At this point, I have created a project from the "team" template, I'm trying to add features but they just don't work. So, I started a new project following the steps, and I'm still not able to get it to work.

For example, taking the multi-card-carrousel, I start a project, copy the code, and doesn't work, not sure what's wrong with it. Not sure if someone could help.

Also, another question, if I already started a project, can I add the react feature in order to use the "react bootstrap" examples?

Thanks!


Krzysztof Wilk staff commented 2 years ago

Hi!

Remember you have to install plugins previously to make Plugins components work. You can check there: https://mdbootstrap.com/docs/react/pro/plugins-installation/ how to do it :)


kpienkowska staff answered 2 years ago

If you have a problem with getting our package to work please check and post here any console errors you may get. Also maybe try copying your code to snippets to check whether there is a problem with your code or maybe if the package is not linked right. https://mdbootstrap.com/snippets/

Please describe what exactly is not working.

Since you posted in Standard I suppose you have MDB Standard package. React bootstrap examples are intended for React package.


lucianotimo pro premium priority answered 2 years ago

I started this project: MDB5-REACT-UI-KIT-Pro-Advanced-4.1.0

Then I copy paste any of these

https://mdbootstrap.com/docs/standard/plugins/multi-item-carousel/

And none of those work, it just shows the photos.

Also tried on the "team" template, which is the base I used.


Yohana Habsari pro premium priority commented 2 years ago

get the same problem, have you solve this?


lucianotimo pro premium priority answered 2 years ago

Should I start a clean fresh project in order to make it work?

Is there any way to change my current project to react package if necessary?


lucianotimo pro premium priority answered 2 years ago

I'm not getting any errors.

I copied and pasted the codes in the project and when I say "they are not working" I mean, they don't look like the demos.

Anyway, seems to be I was working on this base 'MDB5-STANDARD-UI-KIT-Free-4.4.0', now I started a new project on this one 'MDB5-STANDARD-UI-KIT-Pro-Advanced-4.4.0', copied the html code I had, and worked.

So that was the problem.


kpienkowska staff commented 2 years ago

I'm happy it works now.


Sometimes copying and pasting code doesn't work as expected. It could be due to formatting errors, missing dependencies, or incorrect syntax. Troubleshooting and debugging may be necessary to get it to work. For more detail, click here.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 4.4.0
  • Device: pc
  • Browser: chrome
  • OS: w11
  • Provided sample code: No
  • Provided link: No