You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @meghakrishnamurthy, the <lasso-img> tag currently has a limitation that prevents it from being used in templates rendered in the browser (or even transported to the browser). Unfortunately the error message is not helpful. Instead of using the <lasso-img> tag, I recommend using the JavaScript API for the lasso-image plugin to get the image info (including URL, width and height) and pass that data to your template:
varlassoImage=require('lasso-image');lassoImage.getImageInfo(require.resolve('./my-image.png'),function(err,imageInfo){if(err){// Handle the error}console.log('URL: ',imageInfo.url);console.log('width: ',imageInfo.width);console.log('height: ',imageInfo.height);});
The lasso-image module works on both the server and in the browser. We still need to update the <lasso-img> tag implementation to allow it to work in the browser. Please let us know if the workaround solves your problem. Thanks.
When I setup my page using lasso - everything works great. The page loads up along with stylesheets and javascript.
As soon as I add a
<lasso-img>
tag on the page, it fails to download any resources and throws this error in the console:-As soon as I remove the
<lasso-img>
from the page - it works as expected.The way I included the lasso configuration is in my
config.json
with the entries:-The text was updated successfully, but these errors were encountered: