Closed ashishkp closed 3 years ago
Nothing we can do about this https://github.com/GoogleChrome/workbox/issues/2904. Update your workbox-webpack-plugin dependency.
Thanks @mshima for pointing dependency.
As per the workaround mentioned, workbox-webpack-plugin v6.2.0 is not backward compatible and so fix should be applied in following files as "~6.0.2" instead of "6.2.0"
generators/client/templates/react/package.json generators/client/templates/vue/package.json
Thanks @mshima for pointing dependency.
As per the workaround mentioned, workbox-webpack-plugin v6.2.0 is not backward compatible and so fix should be applied in following files as "~6.0.2" instead of "6.2.0"
generators/client/templates/react/package.json generators/client/templates/vue/package.json
Hi Ashish,
Since I'm a newbie, Can you please be more specific? Actually I was making changes to the following files
~/environment/tripmgmt/node_modules/generator-jhipster/generators/client/templates/react/package.json ~/environment/tripmgmt/node_modules/generator-jhipster/generators/client/templates/vue/package.json
for the line "file-loader" : "6.2.0"
as "file-loader" : "~6.0.2"
the above not worked, so also changed line "workbox-webpack-plugin": "6.1.5"
as "workbox-webpack-plugin": "~6.0.2"
still not worked. so help me resolve this
The workaround is:
Generate the application using jhipster --skip-install
.
Update workbox npm install workbox-webpack-plugin@latest
Thank you Marcelo, let me try that.
The workaround is: Generate the application using
jhipster --skip-install
. Update workboxnpm install workbox-webpack-plugin@latest
Thank bro!
Overview of the issue
Fails with below error (It's also reproducible with Maven build, same error).
Motivation for or Use Case
React is one of the main frontend technology used by many developers and build with production tag failing is a bug.
Reproduce the error
JHipster Version(s)
https://start.jhipster.tech/.
JHipster configuration
{ "generator-jhipster": { "applicationType": "monolith", "gitCompany": "", "baseName": "tripmgmt", "packageName": "com.example.travel", "packageFolder": "com/example/travel", "serverPort": 8080, "serviceDiscoveryType": false, "authenticationType": "jwt", "cacheProvider": "no", "enableHibernateCache": false, "websocket": false, "databaseType": "sql", "devDatabaseType": "h2Disk", "prodDatabaseType": "mysql", "searchEngine": false, "enableSwaggerCodegen": false, "messageBroker": false, "buildTool": "gradle", "useSass": true, "clientPackageManager": "npm", "testFrameworks": [], "enableTranslation": false, "nativeLanguage": "en", "languages": ["en"], "clientFramework": "react", "jhiPrefix": "jhi", "withAdminUi": true, "jhipsterVersion": "7.1.0", "skipClient": false, "skipServer": false, "skipUserManagement": false, "skipCheckLengthOfIdentifier": false, "skipFakeData": false, "entitySuffix": "", "dtoSuffix": "DTO", "blueprints": [], "otherModules": [], "pages": [], "creationTimestamp": 1628273313548, "jwtSecretKey": "", "devServerPort": 9060, "clientTheme": "none", "clientThemeVariant": "", "reactive": false } }
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryNA
Browsers and Operating System
OS: Amazon Linux 2 Browser: Mozilla #Firefox