sarriaroman / photoviewer

PhotoViewer Cordova Plugin
MIT License
157 stars 213 forks source link

missing www/plugins/com-sarriaroman-photoviewer/www/PhotoViewer.js.map #166

Open Djehouti opened 5 years ago

Djehouti commented 5 years ago

Hey there, I keep getting failed to load ressources www/plugins/com-sarriaroman-photoviewer/www/PhotoViewer.js.map Has anybody had this problem ? I tried removing / adding plugin but nothing seems to work In advance thank you for your time

ghost commented 5 years ago

@Djehouti I'm getting the same error. Did you find any solution?

ShadeProps commented 5 years ago

I am getting the same error on version 1.2.2

I modified the plugin.xml inside the plugin to include the .map file on build

<?xml version='1.0' encoding='utf-8' ?>
<plugin id="com-sarriaroman-photoviewer" version="1.2.2" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
    <name>PhotoViewer</name>
    <description>This plugin is intended to show a picture from an URL into a Photo Viewer with zoom features.</description>
    <js-module name="PhotoViewer" src="www/PhotoViewer.js">
        <clobbers target="PhotoViewer" />
    </js-module>
    <js-module name="PhotoViewer" src="www/PhotoViewer.js.map">
        <clobbers target="PhotoViewer" />
    </js-module>

I had to run ionic cordova platform rm ios & rebuild

The 404 error disappeared but now it crashes when loading any local images

raghu5291 commented 5 years ago

Any updates on this, we are blocked on production because of this issue

najilouis commented 5 years ago

Facing the same issue on iOS. Did you find any solution ?

sarriaroman commented 5 years ago

Can you try version 1.2.4? Thanks!

raghu5291 commented 5 years ago

@sarriaroman thanks for the update it worked, I think you can close this issue

najilouis commented 5 years ago

Can you try version 1.2.4? Thanks!

I tried 1.1.18 and it worked