Importing local folder from editor screen fails to include .jade file
colesimmons opened this issue · comments
When importing a visualization from http://localhost:3000/visualization-types/preview/?path=path/to/viz (http://localhost:3000/visualization-types/preview/?path=lightning-default-visualizations/map/ for example), it imports, but on the following screen I get the following in the browser console:
GET http://localhost:3000/js/dynamic/viz/?cachemiss=true&visualizations[]=map 500 (Internal Server Error)
_prelude.js: Uncaught Error: Cannot find module 'viz/map'
If I try opening any data using this new visualization, it appears to not be able to find the .jade file. Even when in the preview before importing, there is a section for javascript, styles, and data, but not Jade template. That leads me to believe that it isn't saving it.
and the server outputs:
Error: Cannot find module './map.jade' from '/Users/csimmons/Stash/lightning/tmp/js-build/6cb951e1-ba5b-4914-a3a7-ac8fd9bfe129/viz'
The build folder doesn't contain any .jade files
Hmm, is the jade file actually contained inside of this folder /Users/csimmons/Stash/lightning/tmp/js-build/6cb951e1-ba5b-4914-a3a7-ac8fd9bfe129/viz
?
Are the other contents correct?
Nope! There's no jade files in that folder, but all the other contents (js, scss) are correct.
Importing via gist does work. Weird.