No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Error: Unknown import from Quasar: QDatetime

    Framework
    2
    3
    2849
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      marsden last edited by marsden

      Steps to reproduction

      1. read https://v0-14.quasar-framework.org/components/datetime.html
      2. Install quasar globally
      3. quasar create test
      4. cd test
      5. replace content src/pages/Index.vue to raw from https://github.com/quasarframework/quasar-play/blob/v0.14/src/components/showcase/forms/datetime/input-datetime.vue
      6. quasar dev
        and get this
       ERROR  Failed to compile with 1 errors
      
      
       error  in ./src/pages/Index.vue?vue&type=script&lang=js&
      
      Module build failed (from ./node_modules/babel-loader/lib/index.js):
        Error: Unknown import from Quasar: QDatetime
      
        - imports.js:167 module.exports
          [test]/[quasar]/dist/babel-transforms/imports.js:167:11
      
        - index.js:64 transform
          [test]/[babel-plugin-transform-imports]/index.js:64:16
      
        - index.js:138
          [test]/[babel-plugin-transform-imports]/index.js:138:39
      
        - Array.forEach
      
        - index.js:121 PluginPass.ImportDeclaration
          [test]/[babel-plugin-transform-imports]/index.js:121:35
      
      and etc...
      

      comment QDatetime, then unknown import QItemSide, QItemMain, QItemSeparator and QListHeader.

      Where i try use QDatetime in my project

      import { QDatetime } from 'quasar'
      

      i get same error: Unknown import from Quasar: QDatetime

      How i can use q-datetime ?

      1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman last edited by

        why not update to v0.17 / v1 instead?. v.14 is so old imo and hasn’t been updated for quite a while :x.

        1 Reply Last reply Reply Quote 0
        • M
          marsden last edited by marsden

          😕
          exactly, i read old docs ))
          thanks!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post