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

    vendor.js cannot find module on unix server

    Help
    2
    3
    1426
    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
      tonyskulk last edited by tonyskulk

      I need help but dont know where exactly it is needed 😉
      I´ve build up an quasar app with webpack2 using single file components. I added axios for ajax requests but when building the app with

      quasar build

      I cannot load the app in chrome anymore. The build works fine but when opening the page in the browser console it shows:
      Uncaught Error: Cannot find module “ieee754”
      at vendor.js:24
      at Object.<anonymous> (vendor.js:24)

      and just an empty page is beeing displayed.

      The curios thing is, that it is still working on a windows machine, but running the webserver on ubuntu the described error occures. (build process (quasar build) happens on an ubuntu server as well)

      I don´t know where this comes from, but after adding base64-js into my package.json with
      npm install base64-js --save
      the next module it cannot find ist ieee754 (Uncaught Error: Cannot find module “ieee754”)

      I don´t know whether I should add every missing module manually. But I would prefer knowing where this all came from.
      The last thing I did was adding axios to the project. Before that everything worked fine.

      Any suggestions?

      Thanks Tony

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        This is most likely because of a faulty dependency package you are using. Any repo to take a look? Have you investigated what package is creating trouble? Open dist/js/vendor.js and check out the indicated line, then post here your findings.

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

          After including axios (“axios”: “^0.16.1”,…) like
          import axios from ‘axios’
          the error occures.

          Now I have manually added the missing modules now

          • “base64-js”: “^1.2.0”,
          • “ieee754”: “^1.1.8”,
          • “isarray”: “^2.0.1”,
          • “core-js”: “^2.4.1”,
            and it seems to work.
            It felt kinda strange because everyone says just import axios and it works… but ok then. Maybe it´s just an dependency configuration error in the current axios module.
            Anyway thanks for your quick answer and keep on the good work!
          1 Reply Last reply Reply Quote 0
          • First post
            Last post