Git Product home page Git Product logo

Comments (7)

nashaofu avatar nashaofu commented on June 2, 2024

4.0的没有测试,我会在4.0的版本测试一下

from screenshots.

nashaofu avatar nashaofu commented on June 2, 2024

我这边在mac os使用4.0是可以的,windows暂时没有电脑测试,感觉应该是没有问题才对

from screenshots.

betterRunner avatar betterRunner commented on June 2, 2024

抱歉这么久才回复,

我用另一台电脑测试了windows,同时也测试了linux
应该都是以下的问题:

  1. 在dev模式下,由于以下这个错误导致无法截图
    Not allowed to load local resource: file:///.../node_modules/electron/dist/resources/default_app.asar/node_modules/shortcut-capture/dist/renderer/index.html
  2. build打包运行的就可以

所以我遇到的问题应该是在dev模式的路径问题,请问你是在dev模式测试的还是build模式呢

from screenshots.

nashaofu avatar nashaofu commented on June 2, 2024

你直接使用npm安装打包的就好了呀,如果你是要clone我的仓库去自己修改,那么直接运行命令npm run dev就好了。不是很清楚你为什么要使用dev模式,还有你是如何使用的,报错问题可以确定为截图界面HTML URL问题

from screenshots.

betterRunner avatar betterRunner commented on June 2, 2024

可能没有表述清楚,我说的dev模式是我工程的dev模式,我是直接使用你的npm包的,就是在我的项目的dev模式下你的包会报错,但是build打包就不会报错

from screenshots.

nashaofu avatar nashaofu commented on June 2, 2024

image
你可以手动指定一下截图界面加载的html文件,指向插件目录下的index.html就行了

from screenshots.

betterRunner avatar betterRunner commented on June 2, 2024

好的,谢谢~

from screenshots.

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.