Topic: How do I use the calendar plugin

Pwijason priority asked 1 year ago


When I run my app with the calendar code from https://mdbootstrap.com/docs/react/plugins/calendar/ I get this error

Compiled with problems:X

ERROR in ./src/App.js 5:0-49

Module not found: Error: Can't resolve 'mdb-react-calendar' in 'C:\Users\jasonmiller\Documents\GitHub\Calendar\calendar\src'

which is

import { MDBCalendar } from 'mdb-react-calendar';

Are the plugins not accessible from cli? I tried installing from the zip for my app but it had too many errors that npm start wouldn't even open


Grzegorz Bujański staff answered 1 year ago


Here you will find instructions for installing plugins: https://mdbootstrap.com/docs/react/pro/plugins-installation/#section-npm-existing-project. The instructions contain a link to material on Youtube that shows how to generate an access token.

On our website you will find documentation for both free and pro components and plugins. Here you will find the documentation for the calendar plugin: https://mdbootstrap.com/docs/react/plugins/calendar/


Grzegorz Bujański staff answered 1 year ago


Have you tried adding the calendar plugin via npm?

npm i git+https://oauth2:ACCESS_TOKEN@git.mdbootstrap.com/mdb/react/mdb5/plugins/prd/calendar

Pwijason priority commented 1 year ago

Can you provide more instruction or a link to docs that can get me started with my MDB React Advanced account? The docs seem to be for the free versions which do not offer calendar.. with the above npm command I'm not sure where to find my token



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Opened

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 5.1.0
  • Device: PC
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes