Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Cannot run sample #37

Open
picaron opened this issue Mar 6, 2018 · 12 comments
Open

Cannot run sample #37

picaron opened this issue Mar 6, 2018 · 12 comments

Comments

@picaron
Copy link

picaron commented Mar 6, 2018

I cloned the repo and ran both services (./gradlew backend:run and ./gradlew frontend:run)

Both servers start successfully but it seems the backend is unable to load the resource : /frontend/frontend.bundle.js

22:26:40.615 [ktor-pool-1-thread-1] TRACE Thinkter - Unhandled: GET - /frontend/frontend.bundle.js
@jangalinski
Copy link

I cant run frontend, backend works ...

> Task :frontend:webpack-run
webpack started, see http://localhost:8080/
⚠ 「wds」: The `setup` option is deprecated and will be removed in v3. Please update your config to use `before`

@achaiah
Copy link

achaiah commented Apr 2, 2018

I can't run the frontend either... so much for a full-stack example :(

* What went wrong:
Execution failed for task ':frontend:npm-preunpack'.
> javax/xml/bind/DatatypeConverter

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

@bukajsytlos
Copy link

bukajsytlos commented Apr 2, 2018 via email

@achaiah
Copy link

achaiah commented Apr 3, 2018

Yes, that worked. Thanks. Apparently the frontend cannot be built with jdk9. To build with jdk8 you can specify the following option: ./gradlew -Dorg.gradle.java.home=your-jdk8-home frontend:run

@mformetal
Copy link

That doesn't work for me. Whenever I try to run the sample and connect to http://localhost:8080/, I get this message: "Error occured while trying to proxy to: localhost:8080/".

@Para7etamol
Copy link

same procedure and symptoms as inital posting:

08:57:47.724 [ktor-pool-1-thread-4] TRACE Thinkter - 200 OK: GET - /
08:57:47.761 [ktor-pool-1-thread-1] TRACE Thinkter - Unhandled: GET - /frontend/frontend.bundle.js

I used for build and run:
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

Please help

@DavidWhit
Copy link

@picaron same issue here. Man, so much config going on behind the scenes...

@picaron
Copy link
Author

picaron commented Nov 15, 2018

not a very convincing example ... 👎

@jsvde
Copy link

jsvde commented Apr 4, 2019

Had the same problem.
The frontend runs on port 8080 and proxies anything that does not match /frontend/ to port 9090 ( the backend).
The webpack server does not actually run correctly due to a wrong devDependency babel-core instead of @babel/core. PR #39 aims to fix this but is not merged yet.
The "backend issues" described above are the result of the misconfiguration of webpack and can resolved with the same fix.

To solve the problem for now you can just update the single line in frontend/build.gradle from
devDependency("babel-core") to devDependency("babel-core") at line 38.

@AsimShakour
Copy link

@jsvde Appreciate the suggestion, but I don't see the difference between "frontend/build.gradle from devDependency("babel-core") to devDependency("babel-core") at line 38" .

Thanks

P.S. I get stuck at 80% when I run it on windows: openjdk version "1.8.0_202-release"

@ayvazj
Copy link

ayvazj commented Nov 17, 2019

Should be devDependency("babel-core") to devDependency("@babel/core") at line 38.

@21region
Copy link

Should be devDependency("babel-core") to devDependency("@babel/core") at line 38.

This doesn't help. The build still hangs.

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

No branches or pull requests