-
Notifications
You must be signed in to change notification settings - Fork 72
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
TypeError: path must be a string #123
Comments
Happens on a hard-page refresh on our dev as well. $ node app.js
GitHub client authenticated
GET / 200 425.363 ms - -
GET /redist/npm/font-awesome/css/font-awesome.min.css 304 1479.287 ms - -
GET /redist/npm/octicons/octicons/octicons.css 200 1478.840 ms - -
GET /css/common.css 200 1475.073 ms - -
GET /css/github.css 200 1473.006 ms - -
GET /redist/npm/jquery/dist/jquery.js 200 1471.529 ms - -
GET /redist/npm/bootstrap/dist/js/bootstrap.js 200 777.799 ms - -
GET /less/bootstrap/oujs.css 200 2292.086 ms - -
GET / 200 391.603 ms - - ************ HARD REFRESH INITIATED HERE
fs.js:682
binding.stat(pathModule._makeLong(path), callback);
^
TypeError: path must be a string
at Object.fs.stat (fs.js:682:11)
at /home/user/repo/git/oujs/martii/OpenUserJS.org/node_modules/less-middleware/lib/middleware.js:36:8
at Array.forEach (native)
at checkImports (/home/user/repo/git/oujs/martii/OpenUserJS.org/node_modules/less-middleware/lib/middleware.js:35:9)
at /home/user/repo/git/oujs/martii/OpenUserJS.org/node_modules/less-middleware/lib/middleware.js:276:13
at Object.oncomplete (fs.js:108:15) Rechecked v2 upgrade doc for less and it still says that it's an array for our end. Thanks. |
So, two ideas. The first is that for production you may consider using the Second, I introduced a bug with there not being the correct structure for the |
Kewl... I'll retest this as soon as it's on npmjs.com. :) As far as not checking for changes to the file we don't have direct terminal/console access yet so we would probably need to have something in startup to delete any related .css created so I'd rather keep that dynamic for the time being... although when I restart the browser the cache is cleared already so I wasn't aware there was a distinction between a hard-refresh and an empty cache with dev. |
2.0.1 is now on NPM if you want to test. The idea behind the |
Seems to be working on hard-page refresh on dev... SunOS and our node provider is a wee bit picky/odd and we're going to be transitioning, soon I hope, to a newer provider. Right now we client-side cache css but eventually we may kick on server side caching for this as you suggested... just depends on if this projects cache mechanism will always recreate .css files on script start (e.g. |
I stand corrected... we get this on production which is SunOS instead of ia32/64 on dev...
... which can cause continual server restarts. I've had to revert our snapshot pre less-middleware dep update for the time being until we figure this out. :\
See also:
The text was updated successfully, but these errors were encountered: