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

    Keytar cannot be found in production

    Framework
    1
    2
    80
    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.
    • W
      walfin last edited by

      My electron app works with keytar in development. However, in production, I am getting an error, “Error: Cannot find module ‘keytar’” when calling window.require(‘keytar’). How can I ensure that keytar is bundled in production? I’ve tried using “import ‘keytar’” to get webpack to bundle it, but it didn’t work.

      1 Reply Last reply Reply Quote 0
      • W
        walfin last edited by

        Found the answer, it needs to be installed using --save instead of --save-dev

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