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

Getting errors after upgrading into 0.16 #111

Closed
chompomonim opened this issue Dec 31, 2015 · 19 comments
Closed

Getting errors after upgrading into 0.16 #111

chompomonim opened this issue Dec 31, 2015 · 19 comments
Labels

Comments

@chompomonim
Copy link

conflict: two packages included in the app (templating and peerlibrary:blaze-components) are both trying to handle *.html
@mitar
Copy link
Member

mitar commented Dec 31, 2015

Please read the installation section.

@mitar mitar closed this as completed Dec 31, 2015
@mitar mitar added the question label Dec 31, 2015
@chompomonim
Copy link
Author

$ meteor remove blaze-html-templates
meteor remove templating
blaze-html-templates: removed dependency

$ meteor remove templating
templating is not in this project.

$ meteor add peerlibrary:blaze-components

Changes to your projects package version selections:

peerlibrary:assert            added, version 0.2.5
peerlibrary:base-component    added, version 0.14.0
peerlibrary:blaze-components  added, version 0.16.0
peerlibrary:computed-field    added, version 0.3.1
peerlibrary:data-lookup       added, version 0.1.0
peerlibrary:reactive-field    added, version 0.1.0


peerlibrary:blaze-components: Reusable components for Blaze

$ meteor
[[[[[ ~/Dev/Meteor/demo ]]]]]

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

   While determining active plugins:
   error: conflict: two packages included in the app (templating and peerlibrary:blaze-components) are both trying to handle *.html

   While determining active plugins:
   error: conflict: two packages included in the app (templating and peerlibrary:blaze-components) are both trying to handle *.html

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

@mitar
Copy link
Member

mitar commented Dec 31, 2015

Can you share the code? Or at least your .meteor/packages? Do you use any packages, which depend both on templating and Blaze Components?

@mitar mitar reopened this Dec 31, 2015
@chompomonim
Copy link
Author

My .meteor/packages:

# Meteor packages used by this project, one per line.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.

standard-minifiers
meteor-base
mobile-experience
mongo
session
jquery
tracker
logging
reload
random
ejson
spacebars
check

coffeescript
mquandalle:jade

aldeed:simple-schema
aldeed:autoform
fabienb4:autoform-semantic-ui

accounts-ui
accounts-password
useraccounts:flow-routing
useraccounts:semantic-ui

stolinski:stylus-multi
semantic:ui-css

kadira:flow-router
arillo:flow-router-helpers
kadira:blaze-layout
reactive-var
nous:utils-and-helpers
meteorflux:reactive-state
momentjs:moment
matb33:collection-hooks
dburles:collection-helpers

orionjs:core
dvz:orion-semantic-ui
orionjs:relationships
orionjs:froala
orionjs:filesystem
vsivsi:orion-file-collection
orionjs:image-attribute

meteorhacks:kadira
msavin:mongol
msavin:jetsetter

peerlibrary:blaze-components

@mitar
Copy link
Member

mitar commented Dec 31, 2015

Hm, this is really a bad error message. It seems one of your packages imply templating and this is why you are getting this error. Good luck figuring out which one. I opened meteor/meteor#5911.

@mitar
Copy link
Member

mitar commented Dec 31, 2015

The following two packages are conflicting:

@mitar
Copy link
Member

mitar commented Dec 31, 2015

I opened orionjs/orioncms#381.

@mitar
Copy link
Member

mitar commented Dec 31, 2015

And dvzrd/orion-semantic-ui#5.

@mitar
Copy link
Member

mitar commented Dec 31, 2015

Anyway, a better approach than having all package dependencies on the project level, is to use packages to structure your app. Then your packages can depend on different other packages which can both process HTML files.

@mitar mitar closed this as completed Dec 31, 2015
@chompomonim
Copy link
Author

@mitar big thanks for taking time for this and for your advice.

@gbisheimer
Copy link

The same happened to me when trying to use codefights:blaze-material-ui because of this line.

Don't know yet if templating is needed or not for blaze-material-ui to work, but will open an issue for this.

@mitar
Copy link
Member

mitar commented Jan 2, 2016

Thanks for reporting. It is not needed anymore (and in fact it conflicts) because templating is provided through Blaze Components.

@mscherer82
Copy link

I still got this error message when I try to use 0.16.x. How can I find out which package depends on templating and causes the error?

@mitar
Copy link
Member

mitar commented Feb 5, 2016

You have to manually go through it. See meteor/meteor#5911

@mitar
Copy link
Member

mitar commented Feb 5, 2016

But please post what you find here, because it might help others address the issue quicker.

@mscherer82
Copy link

I found out that gwendall:simple-schema-i18n implies templating. For now I removed the package.

@mitar
Copy link
Member

mitar commented Feb 5, 2016

Could you report this there?

@hexsprite
Copy link

I'm having a hard time upgrading to a newer version of blaze-components due to this issue.

I looked through all the dependencies in my app and couldn't see that they implied templating. Perhaps I don't understand it well enough.

Here's my packages file

###
# Meteor standard packages
###
peerlibrary:blaze-components

accounts-base
accounts-google
accounts-ui-unstyled
coffeescript
ecmascript
email
fastclick
standard-app-packages
markdown
promise
reactive-var
reactive-dict
random
service-configuration
standard-minifier-css
standard-minifier-js

###
# Packages requiring specific order
###

###
# Packages (3rd Party)
###
aldeed:autoform
copleykj:jquery-autosize
dsyko:hopscotch
infinitedg:winston
infinitedg:winston-loggly
iron:layout
iron:router
jag:pince
juliancwirko:s-alert
juliancwirko:s-grid
konecty:multiple-instances-status
konecty:user-presence
linto:jquery-ui
mrgalaxy:stripe
natestrauser:animate-css
natestrauser:font-awesome
peerlibrary:assert
peerlibrary:computed-field
peerlibrary:reactive-field
percolate:google-api@=1.0.0
percolate:migrations
percolatestudio:segment.io@1.2.2_1
percolatestudio:synced-cron
utilities:avatar
vsivsi:job-collection
wylio:winston-papertrail
zimme:active-route
lookback:tooltips

###
# Deployment tools
###
meteorhacks:kadira
kadira:debug
meteorhacks:kadira-profiler


###
# Testing Tools
###
google-fake
velocityjs:velocityjs

###
# Local packages
###
hilios:jquery.countdown

###
# Newly added packages, to be sorted
###
alanning:roles
gwendall:impersonate
peerlibrary:server-autorun
peerlibrary:reactive-publish
fongandrew:find-and-modify
chriswessels:hammer
dburles:collection-helpers
dispatch:mocha-browser
meteorhacks:ssr
dispatch:mocha-phantomjs
dispatch:mocha

@mitar
Copy link
Member

mitar commented Jun 24, 2016

The best Meteor architecture is to put all code into local packages instead of having top-level code and top-level packages. In that case you can even use multiple packages in parallel, who handle HTML files.

When you have everything inside top-level packages it really becomes a problem because of possible conflicts between packages like this one.

The issue is that implying can be recursive. Maybe some dependency of a package you are using is doing implying.

The easiest way to detect is to remove few packages and try and see if it is still conflicting and do bisection until you find a package which is problematic.

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

No branches or pull requests

5 participants