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 when trying to use the `Screen` plugin

    Framework
    2
    4
    411
    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.
    • T
      toymachiner62 last edited by

      I’m trying to use the Screen plugin https://quasar-framework.org/components/screen-plugin.html

      You can see which versions i’m on:

      $ quasar dev
      
       Dev mode.......... spa
       Quasar theme...... mat
       Quasar CLI........ v0.17.22
       Quasar Framework.. v0.17.18
       Debugging......... enabled
      

      Server fails to start with this message:

       ERROR  Failed to compile with 1 errors                                                                                                       14:05:45
      
      This dependency was not found:
      
      * src/plugins/Screen in ./.quasar/client-entry.js
      
      To install it, you can run: npm install --save src/plugins/Screen
      

      So i followed the commands to try and install it and it’s erroring with this message

      $ npm install --save src/plugins/Screen
      npm ERR! code ENOLOCAL
      npm ERR! Could not install from "src/plugins/Screen" as it does not contain a package.json file.
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /Users/tomcaflisch/.npm/_logs/2018-11-12T22_07_42_310Z-debug.log
      
      1 Reply Last reply Reply Quote 0
      • T
        toymachiner62 last edited by

        After reading up on the beginners section again 🙄 https://quasar-framework.org/components/introduction-for-beginners.html#Using-Quasar-Plugins I see I put 'Screen in the wrong plugins section 🤦🏻♂

        Although the error message still does seem a bit misleading maybe?

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

          the error message is correct, since you put it in the wrong plugins section, in your case not the one under quasar, so it does look into the said “src/plugins/” directory.

          1 Reply Last reply Reply Quote 1
          • T
            toymachiner62 last edited by

            Got it. Makes sense.

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