Calendar create undefined

Hello everyone. I have a doubt about how to create a calendar. I’m getting an error, because calendar is not defined in app.

My code is:

export default ({ app }: ExternalProps) => {
  useEffect(() => {
    const miCalendario = app.calendar.create({
      inputEl: '#calendar-inline-container',
      value: [new Date()]
  return (
    <div className='block block-strong no-padding'>
      <div id='calendar-inline-container' className='calendario'></div>

calendario is a middle component between calendar component and app initialization:

  export default ({ app }: ExternalProps) => {
      const citas: string[] = ['Item 1', 'Item 2', 'Item 3'];
      return (
          <Calendario {...{ app }} />
          <Lista citasExtern={citas} fecha={new Date()} />

app is initialized here:

const Componente = () => {
  let app = new Framework7({
    root: '#app',
    name: 'app',
    calendar: {
      url: 'calendar/',
      dateFormat: 'dd/MM/yyyy'
  const view = app.views.create('.view-main');

  return (
    <div className='page-content'>
      <div className='block'>
        <Main {...{ app }} />

Any suggestion or comment about this.
Thanks in advance

Make sure you are using Framework7 version with Calendar included or you use bundle version

import Framework7 from 'framework7/framework7-lite.esm.bundle.js';
1 Like

Not sure if I’m doing well; this is my imports lines:

import { h, render } from 'preact';

import Framework7 from 'framework7';

import 'framework7/css/framework7.bundle.min.css';

import 'font-awesome/css/font-awesome.css';

import './style/index.css';

import Main from './Vistas/Main';

@nolimits4web you’re right I need import right framework7 with calendar and others components included.
Thank you a lot for you response