-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
jHipster 8.0.0 and 8.1.0 /admin/docs not working for Vue 3 #24099
Comments
If there is a quick fix for this, do lemme know. |
not sure if it's a similar issue, can you see if it's related to build options like stated at 23382 |
No reproducible. Next time please provide jhipster jdl app.jdl
./gradlew and
Go to Administration/API. |
Not reproducible. |
I was generating the app from a JDL script and it still doesn't work. jhipster info .yo-rc.json file{ "generator-jhipster": { "applicationIndex": 0, "applicationType": "monolith", "authenticationType": "jwt", "baseName": "selfStorage", "buildTool": "gradle", "cacheProvider": "ehcache", "clientFramework": "vue", "databaseType": "sql", "devDatabaseType": "h2Disk", "devServerPort": 9060, "enableTranslation": true, "entities": [ "Facility", "Unit", "Tenant", "Lease", "Payment" ], "jhipsterVersion": "8.1.0", "languages": [ "en", "ja", "th", "id", "zh-cn" ], "lastLiquibaseTimestamp": 1705681485000, "nativeLanguage": "en", "prodDatabaseType": "postgresql", "testFrameworks": [ "cypress", "gatling" ] } } Environment and Toolsopenjdk version "20.0.1" 2023-04-18 git version 2.34.1 node: v18.16.0 Docker version 24.0.7, build afdd53b JDL for the Entity configuration(s)
|
From my investigation, it must be because Vue 3 didn't package/copy the swagger-ui properly based on the comparison that I was doing between the old jhipster 7(webpack.common.js) and the new jhipster 8 (vite.config.ts). |
@mshima can you please verify that again? |
I’ve tested again using main branch. |
@kevintanhongann did you manage to solve the issue? I am having the exact same problem |
I tried to play around with that again, and found a workaround/fix. For the missing axios.min.js a normalizePath() did help. For the missing swagger deps, I resolved the wildcarded path inside the viteStaticCopy src array (see picture) @mshima I am not sure why this is happening, any idea? |
This is my working config on windows now @kevintanhongann
looks like f91d5f5 might be the cause? |
@soenkekrusche that commit fixed a clean run of vite-server. Check if this PR fixes the issue. |
Overview of the issue
Reproduce the error
Generate a Vue flavor jHipster project, use any JDL script you desire, generate the project and navigate to API (/admin/docs)
Related issues
N/A
Suggest a Fix
N/A
JHipster Version(s)
8.0.0
JHipster configuration
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryN/A
Browsers and Operating System
Ubuntu 23.04, Firefox
The text was updated successfully, but these errors were encountered: