Closed jywarren closed 5 years ago
Could be related to #892, see https://github.com/publiclab/mapknitter/commit/a79a86f2af01a7d1b5a9623616fd043228ebb267 - yes, for sure!
I think it's that for some reason window.mapknitter
is not initialized by the time we call it?
Oh wait! I think it's that the rake assets:precompile
step didn't run! I'll manually run that in staging now.
OK, i'm getting error: Uglifier::Error: Unexpected token name «i», expected punc «;». To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true).
OK, addressed that in #917, i believe...
Now waiting for stable to build so we can test out the compiled assets in http://mapknitter-stable.laboratoriopublico.org/maps/central-park-nyc
Hmm. NameError: uninitialized constant Uglifier
Trying adding require 'uglifier'
before the line in config/environments/production.rb
That worked and it passed the jenkins build for the first time!
OK, now re-ran RAILS_ENV=production COMPOSE_PROJECT_NAME=mapknitter_stable PORT=6002 docker-compose exec web rake assets:precompile
and am rebuilding the container.
OK, now we seem ok after rebuilding the container!
Map creation seems fine. Closing this now!
In stable, i'm now seeing an error on this page: http://mapknitter-stable.laboratoriopublico.org/maps/central-park-nyc
Uncaught TypeError: Cannot read property '_map' of undefined
around this line:
I believe it's on this line, but not sure:
https://github.com/publiclab/mapknitter/blob/a79a86f2af01a7d1b5a9623616fd043228ebb267/app/assets/javascripts/maps.js#L22
This seems to be preventing any manipulation of images.