Giter Club home page Giter Club logo

Comments (8)

Nantris avatar Nantris commented on September 13, 2024 1

For yarn users:

npm i
yarn import
yarn

Finally, delete package.lock.json.


But @reZach if you know what causes the issue were the page has to be reloaded before it will work that's still a minor issue.

from secure-electron-template.

Nantris avatar Nantris commented on September 13, 2024

If I use npm i this doesn't occur, but then we get an endless stream of these messages in the terminal:

27316:0130/193504.888385:ERROR:CONSOLE(1)] "Extension server error: Operation failed: Permission denied", source: devtools://devtools/bundled/extensions/extensions.js (1)

Edit: If I refresh the devtools then this resolves.

But no love for Yarn? :(

from secure-electron-template.

reZach avatar reZach commented on September 13, 2024

@slapbox I am open if you are willing to look into a solution to make yarn work natively for this template. I am sorry, I thought yarn should work without any hiccup!

To the issue with the "operation failed" message, that was fixed here.

from secure-electron-template.

Nantris avatar Nantris commented on September 13, 2024

Oddly that issue with needing to reload only occurs for me on Linux.

I think the issue is that the template relies on package package-lock.json. I think this could be remedied with more stringent dependency versions in package.json, but I'm not sure what package in particular causes the issue. Fortunately the workaround is pretty simple.

from secure-electron-template.

reZach avatar reZach commented on September 13, 2024

Oddly that issue with needing to reload only occurs for me on Linux.

I think the issue is that the template relies on package package-lock.json. I think this could be remedied with more stringent dependency versions in package.json, but I'm not sure what package in particular causes the issue. Fortunately the workaround is pretty simple.

Yes I'd love to know what package is causing this issue. I'm seeing w3c-hr-time uses browser-process-hrtime that's probably the culprit, but I don't know what's using it.

edit was looking in wrong repo when I made this comment.

from secure-electron-template.

Nantris avatar Nantris commented on September 13, 2024

At least on Windows it doesn't seem that either of those packages are used by the repo.

{ secure-electron-template } webpackPreload » yarn why browser-process-hrtime
yarn why v1.22.4
[1/4] Why do we have the module "browser-process-hrtime"...?
[2/4] Initialising dependency graph...
[3/4] Finding dependency...
error We couldn't find a match!
Done in 0.73s.
{ secure-electron-template } webpackPreload » yarn why w3c-hr-time
yarn why v1.22.4
[1/4] Why do we have the module "w3c-hr-time"...?
[2/4] Initialising dependency graph...
[3/4] Finding dependency...
error We couldn't find a match!
Done in 0.66s.

Worth re-opening this issue? I haven't seen this issue since, but I've also been working on Windows since.

from secure-electron-template.

reZach avatar reZach commented on September 13, 2024

@slapbox I'll reopen, I was looking at a different repo when I searched and found that!

process/browser is added in webpack.config.js due to this comment

from secure-electron-template.

reZach avatar reZach commented on September 13, 2024

Closing this issue as I'm calling out the problem with yarn in this pinned issue.

from secure-electron-template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.