Closed mraible closed 2 years ago
This issue is stale because it has been open 30 days with no activity. Our core developers tend to be more verbose on denying. If there is no negative comment, possibly this feature will be accepted. We are accepting PRs :smiley:. Comment or this will be closed in 7 days
Keep it open please.
On Sun, Aug 1, 2021 at 6:05 PM github-actions[bot] @.***> wrote:
This issue is stale because it has been open 30 days with no activity. Our core developers tend to be more verbose on denying. If there is no negative comment, possibly this feature will be accepted. We are accepting PRs š. Comment or this will be closed in 7 days
ā You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jhipster/generator-jhipster/issues/15311#issuecomment-890612679, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAELZGDBPVBNKKUK7P2LVTT2XONPANCNFSM46UBWXAQ .
can't reproduce the initial command
$: jhipster jdl mf.jdl --microfrontend
error I get:
INFO! Using JHipster version installed globally
INFO! Downloading file: https://raw.githubusercontent.com/jhipster/jdl-samples/v7.1.0/mf.jdl
INFO! Error downloading https://raw.githubusercontent.com/jhipster/jdl-samples/v7.1.0/mf.jdl: 404 - Not Found
INFO! Downloading file: https://raw.githubusercontent.com/jhipster/jdl-samples/main/mf.jdl
ERROR! Error downloading https://raw.githubusercontent.com/jhipster/jdl-samples/main/mf.jdl: 404 - Not Found
Error: Error downloading https://raw.githubusercontent.com/jhipster/jdl-samples/main/mf.jdl: 404 - Not Found
@shershen08 You have to copy the JDL in this post to a mf.jdl
file for this to work. Otherwise, the jdl
command tries to pull from https://github.com/jhipster/jdl-samples.
@shershen08 You have to copy the JDL in this post to a
mf.jdl
file for this to work. Otherwise, thejdl
command tries to pull from https://github.com/jhipster/jdl-samples.
yes, indeed I was missing a correctly named file
from brief analysis plugin is imported but not activated
const BrowserSyncPlugin = require('browser-sync-webpack-plugin')
in store/webpack/webpack.custom.js and blog/webpack/webpack.custom.js
This issue is stale because it has been open 30 days with no activity. Our core developers tend to be more verbose on denying. If there is no negative comment, possibly this feature will be accepted. We are accepting PRs :smiley:. Comment or this will be closed in 7 days
Keep it open as I think it'd be really cool to develop a microservice in isolation.
I have this particularly implemented somewhere. Will finish this week.
Now I remember why I didn't finished it. I wasn't sure about the implementation.
https://github.com/jhipster/generator-jhipster/pull/16214 requires to execute gateway using devserver/browser sync npm start
.
Which is what the issue suggests.
Another approach is to start the gateway without devServer (using docker or ./mvnw
) and implement at the microfrontend a browser sync that points to the gateway ui.
./mvnw
) / microfrontend (devServer + browser sync pointing to gateway).I think approach 2 is more useful since the gateway can be shared as a container instead of source.
@mraible what do you think?
@mshima I like option #2 as well.
@pascalgrimaud bounty claimed https://opencollective.com/generator-jhipster/expenses/50252.
@mshima : approved
Overview of the issue
If you create a micro frontend architecture with the following command, when you modify the blog's files, there's no hot-reloading. The change is recognized in the blog project and recompilation happens, but the gateway is not aware of it and doesn't refresh the browser. If you manually refresh, it works.
Motivation for or Use Case
It'd be cool if you could modify files in the blog project and those files would be hot-reloaded.
Reproduce the error
Using the following JDL:
Create apps with it.
Then, start all apps with:
Start the gateway and blog frontends:
Modify a file in the blog app and notice that it's not hot-reloaded in the gateway. Manually refresh the gateway and you'll see the change.
JHipster Version(s)
main
branch as of June 13, 2021.