Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.

Task produces an infinite loop/does not end #36

Open
jonas-pietzsch opened this issue Jul 9, 2016 · 3 comments
Open

Task produces an infinite loop/does not end #36

jonas-pietzsch opened this issue Jul 9, 2016 · 3 comments

Comments

@jonas-pietzsch
Copy link

Hello,
I want to prerender an AngularJS 1 app served with a Spring Boot backend. But the task never finishes:

> grunt htmlSnapshot                                                                                                                            11:28:05
Running "htmlSnapshot:prod" (htmlSnapshot) task
running html-snapshot task...hold your horses

I started with a basic example config:

    htmlSnapshot: {
            prod: {
                options: {
                    snapshotPath: 'dist/snapshots/',
                    sitePath: 'http://localhost:9002/index2.html', // also tried 127.0.0.1
                    urls: [
                        ''
                    ]
                }
            }
        },

The server is available through browsers.
I don't know what's left to try because this is the most basic example I could imagine.
Do you have an idea or would like to see more details?

@pedrumgolriz
Copy link

Any updates on this? I'm having the same problem

@toontjetoontje
Copy link

Same problem here. Any news about this?

@richardnias
Copy link

I believe I have solved this issue in my fork (https://github.com/nias-r/grunt-html-snapshot) - phantom.args has been removed. Changing this to system.args and updating grunt-lib-phantomjs works for me.

I've also opened a pull request, but I'm not sure how active the maintainer is...

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

No branches or pull requests

4 participants