Error when trying to use the `Screen` plugin
-
I’m trying to use the
Screen
plugin https://quasar-framework.org/components/screen-plugin.htmlYou 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
-
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 sectionAlthough the error message still does seem a bit misleading maybe?
-
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.
-
Got it. Makes sense.