-
Notifications
You must be signed in to change notification settings - Fork 2
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: Cannot call method 'replace' of undefined #18
Comments
I found the actual replace. And I also found that err.stack is undefined (would be good to always print errors via 'new Error') |
I'm reopening this as I'm still getting it, and I finally think it's happening within "carto" node.js module itself, when trying to render this:
|
Got it, the inner carto is a dependency of |
note to self: I left cartodb while grainstore was at version 0.22.1 |
I think the CSS is missing a full datasource. Expanded:
|
Filed upstream (as I think carto should not throw in any case): mapbox/carto#430 |
For comparison, this is the CSS rendered for a vector layer:
So the problem is not with the |
The
So I guess it is undefined as a parameter, and disappears on JSON.stringify, I guess ? |
Confirmed:
|
Ok, closing this -- I clearly see now that the proiblem is a missing CartoCSS for raster, and it's clear why (needed to be fixed in systemapic.js) |
An extract from pile logs (trying to serve raster/postgis tiles):
It isn't easy to find the offending
replace
call. Could that message include a stack trace, for development runs ?The text was updated successfully, but these errors were encountered: