Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Cannot use RDC with create-react-app v5 #445

Open
streckgumman opened this issue Feb 13, 2022 · 0 comments
Open

Cannot use RDC with create-react-app v5 #445

streckgumman opened this issue Feb 13, 2022 · 0 comments

Comments

@streckgumman
Copy link

Possible relevant Github discussion: facebook/create-react-app#11756

Compiled with problems:X

ERROR in ./node_modules/@cthit/react-digit-components/dist/index.es.js 16:0-24

Module not found: Error: Can't resolve 'path' in 
'...\@cthit\react-digit-components\dist'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
	- add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }'
	- install 'path-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
	resolve.fallback: { "path": false }


ERROR in ./node_modules/@cthit/react-digit-components/dist/index.es.js 17:0-24

Module not found: Error: Can't resolve 'util' in 
'..........\@cthit\react-digit-components\dist'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
	- add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
	- install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
	resolve.fallback: { "util": false }


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

No branches or pull requests

1 participant