-
-
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 7.1 with React Prod build fails with webpack error #15884
Comments
Nothing we can do about this GoogleChrome/workbox#2904. |
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 |
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 for the line the above not worked, so also changed line still not worked. so help me resolve this |
The workaround is: |
Thank you Marcelo, let me try that. |
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
The text was updated successfully, but these errors were encountered: