[File Viewer Plugin] Error when generating iOS native app

[File Viewer Plugin] Error when generating iOS native app

  
Forge Component
(4)
Published on 22 Aug by Experts
4 votes
Published on 22 Aug by Experts

I am getting the following error when generating an iOS native app: "Cannot find https://github.com/OutSystemsExperts/File-Viewer-Plugin.git#1.0.0"

Hi,

Per checking our app is still working no errors encountered, can you check you should have direct internet connection, if you click the link of github you should be able to see the site of the plugin in github.


Thank you,


Valerie

I have internet connection and can see the site of the plugin when clicking the link. I did notice there is no package.json file. Could that be the reason for the app not being able to compile because of this plugin?

As a follow-up, I am showing the relevant parts of the error I have been getting (since July 2018, before that date it compiled without problems) when generating a native app using the fileviewer plugin:



Calling plugman.fetch on plugin "https://github.com/OutSystemsExperts/File-Viewer-Plugin.git#1.0.0"
saving
Running command: npm install https://github.com/OutSystemsExperts/File-Viewer-Plugin.git#1.0.0 --production --save
Command finished with error code 1: npm install,https://github.com/OutSystemsExperts/File-Viewer-Plugin.git#1.0.0,--production,--save
Error: Failed to fetch plugin https://github.com/OutSystemsExperts/File-Viewer-Plugin.git#1.0.0 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm ERR! code ENOPACKAGEJSON
npm ERR! package.json Non-registry package missing package.json: git+https://github.com/OutSystemsExperts/File-Viewer-Plugin.git#1.0.0.
npm ERR! package.json npm can't find a package.json file in your current directory.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/mabs02/.npm/_logs/2018-07-25T14_58_51_895Z-debug.log

[2018-07-25T15:00:16.176Z] [ERROR] Build failed with the following error: Error fetching Cordova plugin: https://github.com/OutSystemsExperts/File-Viewer-Plugin.git#1.0.0.
[2018-07-25T15:00:16.176Z] [INFO] Zipping application source...
[2018-07-25T15:00:33.025Z] [INFO] Application was not successfully generated!
[2018-07-25T15:00:33.025Z] [INFO] Execution time: 294534ms

Solution

Hey Denis,

Outsystems released a new version of this plugin to solve this issue. 


Cheers,

Guilherme

Solution

Thank you, this resolves the issue.