WebToEpub icon indicating copy to clipboard operation
WebToEpub copied to clipboard

Unable to start

Open you-sunshine opened this issue 1 year ago • 2 comments

After running npm run build,Will report an error

image

you-sunshine avatar May 14 '24 02:05 you-sunshine

@you-sunshine

Error suggests you're checking out in unix mode. But eslint is expecting the lines to be Windows style. https://stackoverflow.com/questions/37826449/expected-linebreaks-to-be-lf-but-found-crlf-linebreak-style

dteviot avatar May 14 '24 07:05 dteviot

@you-sunshine

This will work as a temporary workaround.

--- a/package.json
+++ b/package.json
@@ -19,7 +19,7 @@
     "up": "npm add jszip@latest && npm install",
     "postinstall": "copyfiles -V -u 1 node_modules/jszip/dist/jszip.min.js plugin",
     "test": "http-server -o unitTest/Tests.html",
-    "lint": "cd eslint && node pack.js && eslint packed.js",
+    "lint": "cd eslint && node pack.js && eslint --fix packed.js",
     "build": "cd eslint && node pack.js",
     "release": "node eslint/release.js"
   },

Or, you could use npm run build, which doesn't run eslint.

nozwock avatar May 16 '24 10:05 nozwock

abandoned from issue creater.

gamebeaker avatar Aug 08 '24 10:08 gamebeaker