Skip to content
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

Error: Can't resolve './SnowfallCanvas' #73

Closed
daniel6miller opened this issue Mar 16, 2024 · 2 comments
Closed

Error: Can't resolve './SnowfallCanvas' #73

daniel6miller opened this issue Mar 16, 2024 · 2 comments

Comments

@daniel6miller
Copy link

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.

@lbrtaxel
Copy link

lbrtaxel commented Apr 6, 2024

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

cahilfoley added a commit that referenced this issue Sep 6, 2024
cahilfoley added a commit that referenced this issue Sep 6, 2024
@cahilfoley
Copy link
Owner

This issue should hopefully be resolved in the latest release v2.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants