I am new to meteor iron and I am trying to install aldeed collection2 but the app is crushing
W20190215-12:44:48.023(2)? (STDERR) WARNING: npm peer requirements (for aldeed:collection2) not installed:
W20190215-12:44:48.024(2)? (STDERR) - simpl-schema@>=0.0.0 not installed.
I have tried to install simple-schema but nothing is working.
meteor npm install simpl-schema --save
I have also removed and reinstalled collection2 but I still get the same error. What is it that I am missing?
I tried to reproduce the error with a new created repo, that contains the dependencies you have listed but everything runs fine on my side.
However, I found, that
aldeed:collection2-coreis now somewhat deprecated and being merged back intoaldeed:collection2as you can read in the project repository on GitHub:So a good first step would be to remove the deprecated package and install the updated one:
If you want to start from a new clean project you can reproduce these steps to get to a running starting point here:
The project will start without errors. From here you can start including your former code and see if the error will come back (which is then likely to be an issue inside your code) or not.
Important note on
twbs:bootstrap:The package
twbs:bootstrapis using an old version (3.3.6) which is considered to contain several security vulnerabilities (read here and here).If you want to use the latest Bootstrap you may rather install bootstrap using npm like so:
You need
jqueryhere, too because Meteor does not contain the required version andpopper.jshandles the Popover, Modal etc.To include it in your code you need to add these lines to your client code:
To use Bootstrap 4 with AutoForm you can install
imajus:autoform-bootstrap4(repo) and add the following to your client code: