-
Notifications
You must be signed in to change notification settings - Fork 31
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
Keep getting cannot find className of null #10
Comments
Seems to work after having removed the |
I'm also getting this. Digging around in the nprogress code since I don't see anything about it in this repo EDIT: Aha! This happens when I try to call |
I am also getting this issue, but I solved this buy review nprogress.js souce code: var bar = progress.querySelector(Settings.barSelector),
perc = fromStart ? '-100' : toBarPerc(NProgress.status || 0),
parent = document.querySelector(Settings.parent),
spinner;
css(bar, {
transition: 'all 0 linear',
transform: 'translate3d(' + perc + '%,0,0)'
});
if (!Settings.showSpinner) {
spinner = progress.querySelector(Settings.spinnerSelector);
spinner && removeElement(spinner);
}
if (parent != document.body) {
addClass(parent, 'nprogress-custom-parent');
} the progress bar's default location is the top of window,
So, the solution is, if we want to show the progress bar on the top of the window, just do not pass the |
close this issue |
I've done the setup according to the readme, but every time
Any suggestions?
The text was updated successfully, but these errors were encountered: