Open gauravprwl14 opened 7 years ago
You're probably going to want to check that you're not on the server before invoking nprogress
. Does your React boilerplate have some way of detecting that you're on the server? If not, you could always just check for document
before running NProgress.start()
, or write a wrapper around the library for yourself that just no-ops on the server instead.
just check if document is defined in render and isRendered methods, that did it for me
hey, i am using react starter kit which is an isomorphic boilerplate. i tried using nprogress library in that library but it always give me "document is undefine" error . so can you help in in resolving this issue.