Closed chester23491 closed 1 year ago
Hi @chester23491,
We are not able to reproduce your issue. We created a react 18 app with 12.8.1 and it works.
Hey @hirsch88
Thank you for your help. I'm still getting this warning with your example:
~/Repos/react-18-with-baloise-ds [main ≡]> npm --version
9.5.0
~/Repos/react-18-with-baloise-ds [main ≡]> node --version
v18.14.2
~/Repos/react-18-with-baloise-ds [main ≡]> npm run build
> my-app@0.1.0 build
> react-scripts build
Creating an optimized production build...
Compiled with warnings.
Invalid dependencies have been reported by plugins or loaders for this module. All reported dependencies need to be absolute paths.
Invalid dependencies may lead to broken watching and caching.
As best effort we try to convert all invalid values to absolute paths and converting globs into context dependencies, but this is deprecated behavior.
Loaders: Pass absolute paths to this.addDependency (existing files), this.addMissingDependency (not existing files), and this.addContextDependency (directories).
Plugins: Pass absolute paths to fileDependencies (existing files), missingDependencies (not existing files), and contextDependencies (directories).
Globs: They are not supported. Pass absolute path to the directory as context dependencies.
The following invalid values have been reported:
* "node_modules/"
* "node_modules/@baloise"
* "node_modules/@baloise/design-system-css"
* and more ...
Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.
...
Hi @chester23491
We are using node v16
library is yet not tested for v18
Hi @chester23491
I installed now node v18 and tried it again and it works. Did you set the env variable SASS_PATH ?
After removing the SASS_PATH the warning disappeared. Thank you for support!
Getting invalid dependencies warning during build. This issue occurs with the following configuration in a React 18 setup with the version
12.5.0
and12.8.1
in the module@baloise/design-system-components-react
.Detailed description