Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wont compile and run #107

Open
Skyrant opened this issue Sep 18, 2022 · 1 comment
Open

wont compile and run #107

Skyrant opened this issue Sep 18, 2022 · 1 comment

Comments

@Skyrant
Copy link

Skyrant commented Sep 18, 2022

downloaded the v2.0.2 source from github
created the two .ts config files for twitter and reddit

$yarn run electron:serve

yarn run v1.22.17
$ vue-cli-service electron:serve
/bin/sh: 1: vue-cli-service: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

ok fine. vue-cli is missing:

$npm i vue-cli
$yarn run electron:serve

ERROR  Failed to compile with 2 errors                                                                                                                                                                                12:58:48 PM

 error  in ./src/main.ts

Module Error (from ./node_modules/eslint-loader/index.js):

/home/skyrant/Social-Amnesia-2.0.2/src/main.ts
  18:11  error  Replace `h·=>·h(App)` with `(h)·=>·h(App),`  prettier/prettier

✖ 1 problem (1 error, 0 warnings)
  1 error and 0 warnings potentially fixable with the `--fix` option.


 @ multi (webpack)-dev-server/client?http://10.10.10.51:8080/sockjs-node (webpack)/hot/dev-server.js ./src/main.ts

 error  in ./src/main.ts

Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: [BABEL] /home/skyrant/Social-Amnesia-2.0.2/src/main.ts: Cannot find module '/home/skyrant/Social-Amnesia-2.0.2/node_modules/@babel/compat-data/data/corejs3-shipped-proposals' (While processing: "/home/skyrant/Social-Amnesia-2.0.2/node_modules/@vue/cli-plugin-babel/preset.js")

It still runs but the page is completely WHITE (edge latest version).

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, shrink-to-fit=no">
    <link rel="icon" href="[/favicon.ico](http://10.10.10.51:8080/favicon.ico)">
    <title>Social Amnesia</title>
  <link href="[/js/app.js](http://10.10.10.51:8080/js/app.js)" rel="preload" as="script"><link href="[/js/chunk-vendors.js](http://10.10.10.51:8080/js/chunk-vendors.js)" rel="preload" as="script"><script type="text/javascript" src="http://me.kis.v2.scr.kaspersky-labs.com/FD126C42-EBFA-4E12-B309-BB3FDD723AC1/main.js?attr=wphbPLRJFY59IQiwKVmJrjWOEBoAIuEMJAb8683sRWvwRXmo9Vll_cTglO2p45y3" charset="UTF-8"></script></head>
  <body>
    <noscript>
      <strong>We're sorry but Social Amnesia doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  <script type="text/javascript" src="[/js/chunk-vendors.js](http://10.10.10.51:8080/js/chunk-vendors.js)"></script><script type="text/javascript" src="[/js/app.js](http://10.10.10.51:8080/js/app.js)"></script></body>
</html>

I am about to give up and use the individual tools since this clearly is another example of a bad node app more convoluted than a white puzzle.

But let's give this a shot and install the missing vue presets in the cli-plugin-babel

$yarn upgrade @vue/cli-plugin-babel
$yarn run electron:serve

No type errors found
Version: typescript 3.7.5
Time: 10706ms

  App running at:
  - Local:   http://localhost:8080/ 
  - Network: http://10.10.10.51:8080/

  Note that the development build is not optimized.
  To create a production build, run yarn build.

⠇  Bundling main process...

 DONE  Compiled successfully in 814ms                                                                                                                                                                                   1:09:27 PM

  File                      Size                     Gzipped

  dist_electron/index.js    655.52 KiB               148.75 KiB

  Images and other types of assets omitted.

 INFO  Launching Electron...
Done in 20.52s.

checked the dist_electron directory, only has a index.js file.

ok maybe i should build prod version?

$yarn build

looks successful, dist folder has proper files and structure.

$serve -s dist

nope, still white page. not working at all.

$rm -rf Social-Amnesia-2.0.2

@borabafli
Copy link

Same problem exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants