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

    Quasar1.0beta electron app requiring nightmarejs = cannot find module 'package.json'

    Help
    2
    5
    236
    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.
    • C
      cederron last edited by

      Hello ,
      I’m using quasar 1.0 beta to create and package an electron+vue app , also installed nightmarejs as a dependency.
      When requiring nightmare with :

      const Nightmare = require(“nightmare”);

      I get an exception:

      Cannot find module ‘C:\Users\Alex\quasarapp\node_modules\nightmare\package.json’

      The file ‘C:\Users\Alex\quasarapp\node_modules\nightmare\package.json’ is there, the path is correct.
      I have been searching all day and seems to be a problem with webpack, but this goes beyond my skills.
      Anyone can help?

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

        Did you yarn add nightmare or npm install --save nightmare ?

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

          I considered adding nightmare to the suite of testing harnesses at @quasar/testing - but haven’t gotten around to it yet because there is still so much other stuff to do.

          1 Reply Last reply Reply Quote 0
          • C
            cederron @nothingismagick last edited by cederron

            @nothingismagick

            I tried both with same result.
            I’m not trying to test the app though, I want to scrape a web page.

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

              Switched to a simple electron + vue boilerplate that has no issues importing nightmare.
              Looking forward to get back to Quasar in the future. It looks amazing!!

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