Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a plugin for *.less was active when it was published but none #366

Open
mapitPhonegap opened this issue Aug 3, 2016 · 14 comments
Open

a plugin for *.less was active when it was published but none #366

mapitPhonegap opened this issue Aug 3, 2016 · 14 comments

Comments

@mapitPhonegap
Copy link

Hi,

I have this error, please advice:

Errors prevented startup:

While building for web.browser:
error: no plugin found for lib/client/css/admin-custom.less in yogiben:admin; a plugin for *.less was active when it was published but none
is now

@jc2
Copy link

jc2 commented Aug 5, 2016

Same error here but i fixed it doing the following:

  • meteor remove yogiben:admin
  • meteor add less
  • meteor add yogiben:admin

@mapitPhonegap
Copy link
Author

Still the same =(...I think I just forget about it, thanks anyway

@felixb101
Copy link

Same issue

@LeonidShamis
Copy link

+1 - Same issue

Tried the steps suggested by @jc2 above, but it didn't help:

meteor

=> Started proxy.
=> Started MongoDB.
=> Errors prevented startup:

While building for web.browser:
error: no plugin found for lib/client/css/admin-custom.less in yogiben:admin; a plugin for *.less was active when it was published but none is now

=> Your application has errors. Waiting for file change.
Terminate batch job (Y/N)? y

meteor remove yogiben:admin

Changes to your project's package version selections:

aldeed:tabular removed from your project
aldeed:template-extension removed from your project
meteorhacks:meteorx removed from your project
meteorhacks:unblock removed from your project
mfactory:admin-lte removed from your project
raix:handlebar-helpers removed from your project
twbs:bootstrap removed from your project
yogiben:admin removed from your project
zimme:active-route removed from your project

yogiben:admin: removed dependency

meteor add less
less without a version constraint has already been added.

find "less" .meteor\versions
---------- .METEOR\VERSIONS
[email protected]

meteor add yogiben:admin

Changes to your project's package version selections:

aldeed:tabular added, version 1.4.2
aldeed:template-extension added, version 4.0.0
meteorhacks:meteorx added, version 1.4.1
meteorhacks:unblock added, version 1.1.0
mfactory:admin-lte added, version 0.0.2
raix:handlebar-helpers added, version 0.2.5
twbs:bootstrap added, version 3.3.6
yogiben:admin added, version 1.2.8
zimme:active-route added, version 2.3.2

yogiben:admin: A complete admin dashboard solution

meteor
[[[[[ ]]]]]

=> Started proxy.
=> Started MongoDB.
=> Errors prevented startup:

While building for web.browser:
error: no plugin found for lib/client/css/admin-custom.less in yogiben:admin; a plugin for *.less was active when it was published but none is now

=> Your application has errors. Waiting for file change.

@jc2
Copy link

jc2 commented Aug 17, 2016

have you tried a meteor reset after remove yogiben:admin?

@LeonidShamis
Copy link

I just tried and it didn't help:

meteor remove yogiben:admin
meteor reset
meteor update less
meteor add yogiben:admin

See the results (including versions info - meteor --version && node -v && npm -v) below:

meteor-admin-lte > meteor
[[[[[ meteor-admin-lte ]]]]]

=> Started proxy.
=> Started MongoDB.
=> Errors prevented startup:

While building for web.browser:
error: no plugin found for lib/client/css/admin-custom.less in yogiben:admin; a plugin for *.less was active when it was published but none is now

=> Your application has errors. Waiting for file change.
Terminate batch job (Y/N)? y

meteor-admin-lte > meteor remove yogiben:admin

Changes to your project's package version selections:

aldeed:tabular removed from your project
aldeed:template-extension removed from your project
meteorhacks:meteorx removed from your project
meteorhacks:unblock removed from your project
mfactory:admin-lte removed from your project
raix:handlebar-helpers removed from your project
twbs:bootstrap removed from your project
yogiben:admin removed from your project
zimme:active-route removed from your project

yogiben:admin: removed dependency

meteor-admin-lte > meteor reset
Project reset.

meteor-admin-lte > meteor update less
The specified packages are at their latest compatible versions.

meteor-admin-lte > meteor add yogiben:admin

Changes to your project's package version selections:

aldeed:tabular added, version 1.4.2
aldeed:template-extension added, version 4.0.0
meteorhacks:meteorx added, version 1.4.1
meteorhacks:unblock added, version 1.1.0
mfactory:admin-lte added, version 0.0.2
raix:handlebar-helpers added, version 0.2.5
twbs:bootstrap added, version 3.3.6
yogiben:admin added, version 1.2.8
zimme:active-route added, version 2.3.2

yogiben:admin: A complete admin dashboard solution

meteor-admin-lte > meteor
[[[[[ meteor-admin-lte ]]]]]

=> Started proxy.
=> Started MongoDB.
=> Errors prevented startup:

While building for web.browser:
error: no plugin found for lib/client/css/admin-custom.less in yogiben:admin; a plugin for *.less was active when it was published but none is now

=> Your application has errors. Waiting for file change.
Terminate batch job (Y/N)? y

meteor-admin-lte > meteor --version && node -v && npm -v
Meteor 1.4.0.1
v4.4.7
3.10.5

meteor-admin-lte >

@IcyEagle
Copy link

+1

@IcyEagle
Copy link

IcyEagle commented Aug 22, 2016

meteor update less didn't update version up to 2.7.5 for some reason.

Check your less version number manually in .meteor/versions.
It've helped me!

@LeonidShamis
Copy link

Yes, meteor didn't update less to the latest version.

I've removed less again and re-installed with specific version - it worked this way and the issue has been resolved:

meteor-admin-lte>meteor remove less
less: removed dependency
meteor-admin-lte>meteor add [email protected]
less: Leaner CSS language
meteor-admin-lte>meteor

FYI - my configuration:

meteor-admin-lte>meteor --version && node -v && npm -v
Meteor 1.4.1
v4.5.0
3.10.6

Thank you.

@brascene
Copy link

Hi Leonid,

From which directory should I run remove and add less commands?
Thanks!

@jc2
Copy link

jc2 commented Aug 31, 2016

@brascene use those commands in your meteor project (where you use "meteor" to run the project)

@brascene
Copy link

@jc2 Thank you! Thing was that I don't need to "meteor remove less", just "meteor add [email protected]" and it's all set up.

@tsrandrei
Copy link

tsrandrei commented Jan 6, 2017

Fresh meteor install based on :
Meteor 1.4.2.3
v6.9.2
3.10.9

After update of Less ( with fresh of meteor, less is 1.0 ), meteor-admin seem to work... maybe need more test. Updated documentation, I suppose is important.

@emiscience
Copy link

Just as a matter of interest, when I first came across this package, I created a bare app and tried to add less then. For some bizarre reason it only adds less 1.0.0 to bare versions. Despite forcing a package update..

Like this for example:

$ meteor create --bare fooBar
$ cd fooBar/
$ meteor list

autopublish            1.0.7  (For prototyping only) Publish the entire database to all clients
blaze-html-templates   1.1.0  Compile HTML templates into reactive UI with Meteor Blaze
ecmascript             0.6.1  Compiler plugin that supports ES2015+ in all .js files
es5-shim               4.6.15  Shims and polyfills to improve ECMAScript 5 support
insecure               1.0.7  (For prototyping only) Allow all database writes from the client
jquery                 1.11.10  Manipulate the DOM using CSS selectors
meteor-base            1.0.4  Packages that every Meteor app needs
mobile-experience      1.0.4  Packages for a great mobile user experience
mongo                  1.1.14  Adaptor for using MongoDB and Minimongo over DDP
reactive-var           1.0.11  Reactive variable
shell-server           0.2.1  Server-side component of the `meteor shell` command.
standard-minifier-css  1.3.2  Standard css minifier used with Meteor apps by default.
standard-minifier-js   1.2.1  Standard javascript minifiers used with Meteor apps by default.
tracker                1.1.1  Dependency tracker to allow reactive callbacks

$ meteor add less
Changes to your project's package version selections:
less                       added, version 1.0.14

$ meteor update less
The specified packages are at their latest compatible versions.

It appears that meteor doesn't always pick up when a few of the packages are out of date as quite a few of those are old.

You'll need to force a full update with meteor update --all-packages

Something else I haven't seen checked is peoples global npn caches. I still forget I have the odd module in them from time to time and spend a while frustrated at something like that.

I'm not sure if this helps, but it's saved me a lot of nightmares in the past, but nodeenv. You can create different virtual node environments and keep pet projects in an 'easy to dispose of' corner.

Just to show you quickly:

$ nodeenv ./path/to/envContainer --with-npm
 * Install prebuilt node (7.4.0) ..... done.
 * Install npm.js (latest) ... done.

$ which node
/usr/local/bin/node

$ which npm
/usr/local/bin/npm

$ echo $NODE_PATH && npm get prefix
/use/local/lib/node_modules
/usr/local/

***now for the fun***

$ . ./path/to/envContainer/bin/activate 
(envContainer)$ 

***and now***
(envContainer)$ echo $NODE_PATH && npm get prefix
/Developer/path/to/envContainer/lib/node_modules
/Developer/path/to/envContainer

Hope this helps someone out...

Great work by the way... Nifty!..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants