Comments (7)
For second part
update code of yii2-infinite-scroll to work with version 3 of infinite-scroll and release version 2 of yii2-infinite-scroll
I haven't time right now.
from yii2-infinite-scroll.
Thanks! Don't have any plans so far to update the extension for v3, but will be happy to review and merge pull request if anyone's up for it.
Going to keep the version as it is for now, might do a release at some point later on.
from yii2-infinite-scroll.
Unfortunately i got problems with composer while updating:
The "extra.asset-installer-paths" option is deprecated, use the "config.fxp-asset.installer-paths" option
Loading composer repositoriYour requirements could not be resolved to an installable set of packages.
Problem 1
- nirvana-msu/yii2-infinite-scroll dev-master requires bower-asset/jquery-infinite-scroll 2.* -> no matching package found.
- nirvana-msu/yii2-infinite-scroll dev-master requires bower-asset/jquery-infinite-scroll 2.* -> no matching package found.
- Installation request for nirvana-msu/yii2-infinite-scroll dev-master -> satisfiable by nirvana-msu/yii2-infinite-scroll[dev-master].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
I must admit, my project is rather big and uses all this dependencies:
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": "~2.0.11",
"yiisoft/yii2-authclient": "*",
"yiisoft/yii2-bootstrap": "*",
"yiisoft/yii2-imagine": "*",
"yiisoft/yii2-swiftmailer": "*",
"yii2tech/ar-softdelete": "*",
"dektrium/yii2-user": "dev-hb",
"dektrium/yii2-rbac": "dev-master",
"thyseus/yii2-audit": "dev-hb",
"thyseus/yii2-message": "dev-master",
"thyseus/yii2-sitecontent": "dev-master",
"thyseus/yii2-files": "dev-master",
"thyseus/yii2-favorites": "dev-master",
"thyseus/yii2-banner": "dev-master",
"thyseus/yii2-word-validator": "0.1.0",
"kartik-v/yii2-grid": "*",
"kartik-v/yii2-editable": "*",
"kartik-v/yii2-datecontrol": "dev-master",
"kartik-v/yii2-widget-select2": "^2.0",
"kartik-v/yii2-widgets": "*",
"kartik-v/yii2-export": "*",
"cornernote/yii2-linkall": "^1.0",
"nickcv/yii2-encrypter": "*",
"nirvana-msu/yii2-infinite-scroll": "1.0.*@dev",
"marqu3s/yii2-summernote": "^1.0",
"karakum/yii2-grid": "^1.0",
"yiidoc/yii2-timeago": "dev-master",
"kartik-v/yii2-widget-rating": "*",
"himiklab/yii2-recaptcha-widget" : "*",
"rmrevin/yii2-minify-view": "~1.14",
"kartik-v/yii2-checkbox-x": "*",
"rmrevin/yii2-fontawesome": "~2.17",
"alexandernst/yii2-device-detect": "^0.0.11",
"bizley/migration": "*",
"bower-asset/sweetalert": "1.1.*",
"bower-asset/jquery.are-you-sure": "^1.9@dev",
"bower-asset/punycode": "1.3.0",
"brussens/yii2-maintenance-mode": "*",
"nterms/yii2-mailqueue": "dev-master",
"sjaakp/yii2-alphapager": "*",
"codemix/yii2-localeurls": "^1.4",
"kmergen/yii2-language-switcher": "*"
},
"require-dev": {
"yiisoft/yii2-debug": "dev-master",
"yiisoft/yii2-gii": "dev-master",
"yiisoft/yii2-faker": "dev-master",
"yiisoft/yii2-shell": "dev-master",
"codeception/codeception": "~2.2.5",
"codeception/verify": "dev-master",
"codeception/specify": "dev-master",
"iripvanwinkle/codeception-migration": "dev-master"
},
any idea why this conflict is occuring? Could you upload a version with the old composer.json on packagist.org so i can fix my issue?
thanks a lot !!!
from yii2-infinite-scroll.
One more: I think we should hardcode this version string:
https://github.com/metafizzy/infinite-scroll/blob/2.1.0/package.json#L3
?
from yii2-infinite-scroll.
@thyseus,
if we will return old version with
"bower-asset/jquery-infinite-scroll": "*"
then composer will install latest available version 3, which is not compatible with this extension (at least for now).
I had problem similar to which you described but I hoped that it is just me. I fixed issue for me using the following set of commands:
composer clear-cache
rm -rf vendor/
rm composer.lock
composer update
Result (tested it right now):
composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 9 installs, 0 updates, 0 removals
- Installing yiisoft/yii2-composer (2.0.5): Downloading (100%)
- Installing bower-asset/jquery (2.2.4): Downloading (100%)
- Installing bower-asset/yii2-pjax (v2.0.6): Downloading (100%)
- Installing bower-asset/punycode (v1.3.2): Downloading (100%)
- Installing bower-asset/jquery.inputmask (3.3.7): Downloading (100%)
- Installing cebe/markdown (1.1.2): Downloading (100%)
- Installing ezyang/htmlpurifier (v4.9.3): Downloading (100%)
- Installing yiisoft/yii2 (2.0.12): Downloading (100%)
- Installing bower-asset/jquery-infinite-scroll (2.1.0): Downloading (100%)
Writing lock file
Generating autoload files
It is not needed to always run all commands listed above, once is enough.
I don't see sense in hardcoding of exact 2.1.0, however you can try, if it will simplify installation then it makes sense.
from yii2-infinite-scroll.
@thyseus, there's no point hardcoding version to 2.1.0
in this extension. The extension should be as flexible as possible, allowing the user to pin a specific version if he desires so. In this case extension works with any 2.*
version of the plugin, so that's what should be in composer.json
. You may pin it more precisely in your composer.json
if you require it for some reason.
Let me know if you still have issues after following @dmitry-kulikov's adivce.
from yii2-infinite-scroll.
@nirvana-msu the solution of @dmitry-kulikov works fine ! Thanks a lot to both of you !!
from yii2-infinite-scroll.
Related Issues (17)
- Uncaught SyntaxError: Unexpected token ) HOT 1
- Infinite-scroll without gridview or listview HOT 1
- After pjax call infinite pagination call two times! HOT 3
- Uncaught ReferenceError HOT 1
- Cannot load next set of items if using div container's scrollbar HOT 1
- No on loaded event? HOT 1
- How can change call back url? HOT 1
- "$(...).masonry is not a function" error after appending new items
- Can't install via composer HOT 1
- Javascript error on overriding errorCallback
- Class 'InfiniteScrollPager' not found
- Plugin overwrites client settings
- How/Can I use this with jquery masonry? HOT 3
- Javascript console error using default example/demo HOT 2
- Reverse Infinite Scroll Feature HOT 1
- PHP closing tag HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-infinite-scroll.