Search code examples
cordovameteorphonegap-plugins

Meteor.js Cordova App Failing DOCTYPE


So, I'm building a cross-platform meteor app that uses the BarcodeScanner Plugin. I can build using:

    meteor build cordova --server localhost:3000

But when I try to run using:

    meteor

I get these errors

       cordova/android/project/assets/www/application/head.html:1:Expected one of: <body>, <head>, <template>
       cordova/android/project/assets/www/application/index.html:1:Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
       cordova/android/project/build/outputs/lint-results-release-fatal.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html>

How can i fix this?


Solution

  • It sounds like you did not provide an output directory when you did the cordova build and your meteor app folder is now populated with built js/html files.

    To fix this, delete these files from your meteor app directory and next time you build use the --directory option to specify a path outside your app folder.

    You might also find the Meteor Mobile Guide helpful if you are not already using it.