Error: Can't resolve './SnowfallCanvas'
I am running npm 10.2.4, react 18.2.0 and react-snowfall 2.1.0.
Error is: ERROR in ./node_modules/react-snowfall/lib/Snowfall.js 2:0-50 Module not found: Error: Can't resolve './SnowfallCanvas' in 'C:....client\node_modules\react-snowfall\lib' Did you mean 'SnowfallCanvas.js'? BREAKING CHANGE: The request './SnowfallCanvas' failed to resolve only because it was resolved as fully specified (probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"'). The extension in the request is mandatory for it to be fully specified. Add the extension to the request.
Same for Module not found: Error: Can't resolve './Snowflake' in 'C:......client\node_modules\react-snowfall\lib' Did you mean 'Snowflake.js'? Module not found: Error: Can't resolve './hooks' in 'C:.........client\node_modules\react-snowfall\lib' Did you mean 'hooks.js'?
Let me know how to fix this. Or if it gets fixed Thanks.
I am running npm 10.2.4, react 18.2.0 and react-snowfall 2.1.0.
Error is: ERROR in ./node_modules/react-snowfall/lib/Snowfall.js 2:0-50 Module not found: Error: Can't resolve './SnowfallCanvas' in 'C:....client\node_modules\react-snowfall\lib' Did you mean 'SnowfallCanvas.js'? BREAKING CHANGE: The request './SnowfallCanvas' failed to resolve only because it was resolved as fully specified (probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"'). The extension in the request is mandatory for it to be fully specified. Add the extension to the request.
Same for Module not found: Error: Can't resolve './Snowflake' in 'C:......client\node_modules\react-snowfall\lib' Did you mean 'Snowflake.js'? Module not found: Error: Can't resolve './hooks' in 'C:.........client\node_modules\react-snowfall\lib' Did you mean 'hooks.js'?
Let me know how to fix this. Or if it gets fixed Thanks.
Hello @daniel6miller ! You can fix it by downgrade the version of react-snowfall to 1.2.1
This issue should hopefully be resolved in the latest release v2.1.1