I have some plugins listed in my
email@example.com firstname.lastname@example.org email@example.com firstname.lastname@example.org
The first two work fine and I can use their features in my JS. The last two on the other hand, fail to load on my android device. The meteor client makes requests for the JS files that the plugins provide, but the internal server responds with the default meteor bootstrap HTML instead of the JS contents.
I don’t know much about the cordova build process, so this has me stumped. Some details follow.
The failing plugins have HTML served to them instead:
General Request URL: http://localhost:12072/plugins/cordova-plugin-x-toast/www/Toast.js Request Method: GET Status Code: 200 OK (from disk cache) Referrer Policy: no-referrer-when-downgrade Response Headers Client-Via: shouldInterceptRequest Content-Length: 15202 Content-Type: text/html
The HTML that is served is the same as the initial HTML that is served when you request any non-special path.
As a result of the JS not arriving in the client, we get this stack trace in the console:
Uncaught Error: Module cordova-plugin-x-toast.Toast does not exist. at addEntry (cordova.js:1469) at Object.exports.clobbers (cordova.js:1479) at onScriptLoadingComplete (cordova.js:1893) at scriptLoadedCallback (cordova.js:1926) at HTMLScriptElement.<anonymous> (cordova.js:1880)
The only place in the built files that I found reference to the working plugins but not the broken plugins was
Both the working and the broken plugins have entries for their files in both:
and the files for all of the plugins are in both: