No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Uncaught SyntaxError: Unexpected token <

    Framework
    3
    5
    1078
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tkwebdev23 last edited by tkwebdev23

      *A new/fresh Quasar build. Once deployed to Netlify it is giving the following:
      Uncaught SyntaxError: Unexpected token <

      *No changes to any part of code after running ‘quasar create <project>’

      *Runs without issues in dev environment.

      *Example pages (2 completely different builds/domains, same issue):
      -https://tkwebdev23.netlify.com (view console)
      -https://kittypawscr.netlify.com (view console)

      *Tried with (and without) adding the following to quasar.conf.js as Netlify is looking for dist/index.html (same issue):
      distDir: ‘dist’

      *Example of errors in console (numbers of course change after each build, but still same error for every build):
      app.e1d5c965.js:1 Uncaught SyntaxError: Unexpected token <
      runtime.10a79ea8.js:1 Uncaught SyntaxError: Unexpected token <
      vendor.b1d96465.js:1 Uncaught SyntaxError: Unexpected token <

      1 Reply Last reply Reply Quote 0
      • T
        tkwebdev23 last edited by tkwebdev23

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • C
          Christal last edited by

          @tkwebdev23 Did you find any solution to their issue?

          1 Reply Last reply Reply Quote 0
          • Hawkeye64
            Hawkeye64 last edited by

            @tkwebdev23 @Christal
            You can try quasar build --debug and see if there are any build errors for production code

            1 Reply Last reply Reply Quote 0
            • C
              Christal last edited by

              @Hawkeye64 There is no error with quasar build --debug

              1 Reply Last reply Reply Quote 0
              • First post
                Last post