Code Monkey home page Code Monkey logo

Comments (7)

gnehs avatar gnehs commented on May 31, 2024

Please provide more detailed information, such as: system version, Subtitle Translator version, and the steps to reproduce the issue.

from subtitle-translator-electron.

wujie1314 avatar wujie1314 commented on May 31, 2024

{
"name": "subtitle-translator-electron",
"version": "0.2.1",
"main": "dist-electron/main/index.js",
"description": "Translate subtitle using ChatGPT",
"author": "gnehs",
"license": "MIT",
"private": true,
"debug": {
"env": {
"VITE_DEV_SERVER_URL": "http://127.0.0.1:7777/"
}
},
"scripts": {
"dev": "vite",
"build": "tsc && vite build && electron-builder",
"preview": "vite preview",
"pree2e": "vite build --mode=test",
"e2e": "playwright test"
},
"devDependencies": {
"@playwright/test": "^1.31.0",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@vitejs/plugin-react": "^3.1.0",
"electron": "^24.0.0-beta.1",
"electron-builder": "^23.6.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sass": "^1.58.3",
"typescript": "^4.9.5",
"vite": "^4.1.4",
"vite-electron-plugin": "^0.8.2",
"vite-plugin-electron": "^0.11.1",
"vite-plugin-electron-renderer": "^0.12.1"
},
"engines": {
"node": "^14.18.0 || >=16.0.0"
},
"dependencies": {
"ass-parser": "^0.2.0",
"ass-stringify": "^0.1.3",
"normalize.css": "^8.0.1",
"openai": "^3.2.1",
"react-tooltip": "^5.10.0",
"subtitle": "^4.2.1"
}
}
npm install npm run preview
Just pull the code down and run
node v19.0.0

from subtitle-translator-electron.

gnehs avatar gnehs commented on May 31, 2024

Perhaps you can try running npm run dev, it works well on my computer.

image

from subtitle-translator-electron.

wujie1314 avatar wujie1314 commented on May 31, 2024

image
npm run dev
image
v19.7.0

from subtitle-translator-electron.

gnehs avatar gnehs commented on May 31, 2024

image

Your screenshot indicates that there is an issue with your electron installation. Please reinstall it.

from subtitle-translator-electron.

wujie1314 avatar wujie1314 commented on May 31, 2024

I can use npm run dev
image
but use npm run preview
image

from subtitle-translator-electron.

gnehs avatar gnehs commented on May 31, 2024

this project doesn't support npm run preview

from subtitle-translator-electron.

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.