Skip to content

Error "run" prevented startup #256

Open

Description

@a-cinchetti

While processing files with static-html (for target web.browser):
client/templates/layouts/master_layout/master_layout.html:1: Expected or tag
client/templates/shared/loading/loading.html:1: Expected or tag
client/templates/shared/not_found/not_found.html:1: Expected or tag
client/templates/home/home.html:1: Expected or tag
client/templates/list/list.html:1: Expected or tag

Activity

  1. raym commented on Aug 8, 2017

    @raym

    Same here.
    Brand new app created with iron create <app-name> returns the following at iron run:

    => Errors prevented startup:                  
       
       While processing files with static-html (for target web.browser):
       client/templates/layouts/master_layout/master_layout.html:1: Expected <head> or <body> tag
       client/templates/shared/loading/loading.html:1: Expected <head> or <body> tag
       client/templates/shared/not_found/not_found.html:1: Expected <head> or <body> tag
       client/templates/home/home.html:1: Expected <head> or <body> tag
       
    => Your application has errors. Waiting for file change.
    

    Each of those files has a <template> tag, and these errors will go away if I wrap the contents of each file with a <body> tag, but then of course the app can't find the template MasterLayout

    $ iron version
    1.8.1
    $ meteor --version
    Meteor 1.5.1
    
  2. daresTheDevil commented on Aug 22, 2017

    @daresTheDevil

    Same issue while building a test app.

    meteor run --settings /Users/davidkay/PROJECTS/miqms-meteor/config/development/settings.json
    [[[[[ ~/PROJECTS/miqms-meteor/app ]]]]]
    => Started proxy.
    => Errors prevented startup:
    
    While processing files with static-html (for target web.browser):
    client/templates/cars/create_car/create_car.html:1: Expected <head> or <body> tag
    client/templates/layouts/master_layout/master_layout.html:1: Expected <head> or <body> tag
    client/templates/shared/loading/loading.html:1: Expected <head> or <body> tag
    client/templates/shared/not_found/not_found.html:1: Expected <head> or <body> tag
    client/templates/home/home.html:1: Expected <head> or <body> tag
    
    => Your application has errors. Waiting for file change.
    => Started MongoDB.
    

    Sierra 10.12.6
    Version info:

    $ iron version
    1.8.1
    $ meteor --version
    Meteor 1.5.1
    
  3. abate commented on Oct 10, 2017

    @abate

    it seems you need to remove static-html and install blaze-html-templates

  4. kingzuru commented on Feb 14, 2019

    @kingzuru

    This is how I solved it

    meteor remove static-html
    meteor add blaze-html-templates

  5. upadhyaya14 commented on Nov 7, 2021

    @upadhyaya14

    Errors prevented startup:

    While processing files with static-html (for target web.browser):
    client/Html/sidebar.html:1: Expected or tag

    Please help me in resolving this error , I am getting this while defining my template

  6. gilbertino commented on Jan 11, 2023

    @gilbertino

    Errors prevented startup:

    While processing files with static-html (for target web.browser):
    client/main.html:16: Expected or tag

    Your application has errors. Waiting for file change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions