Hi all,
I’m using first time the template for Custom UI/Confluence “confluence-macro-with-custom-configuration”. (latest @forge/cli)
Without any changes in the source code I tried to install on top-level (root dir) with “npm install”
(as stated in the readme file )
I got the error:
verbose stack Error: Override for react@^16 conflicts with direct dependency
verbose stack at Node.assertRootOverrides (C:\sw\nvm\v22.13.0\node_modules\npm\node_modules\@npmcli\arborist\lib\node.js:1336:29)
verbose stack at #loadActual (C:\sw\nvm\v22.13.0\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\load-actual.js:133:24)
verbose stack at async Promise.all (index 0)
...
This is propably caused by the “overrides” option in the package.json
file:
"devDependencies": {
"vite": "^5.4.6"
},
"dependencies": {
"@atlaskit/css-reset": "^6.6.2",
"@forge/bridge": "4.2.0",
"@forge/resolver": "1.6.3",
"react": "^16",
"react-dom": "^16"
},
"overrides": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
Questions:
- How can I avoid this error?
- Is Forge development silently switching to VITE?
- Is there anything to consider in this regard during development?
Thanks / BR,
Franz