Skip to content

Problem reproduction when lazily resolving a path stored in a variable

Notifications You must be signed in to change notification settings

CodingDive/react-dynamic-lazy-load-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reproduce bug

git clone https://github.com/ReasonableDeveloper/react-dynamic-lazy-load-bug.git && cd react-dynamic-lazy-load-bug
yarn
yarn start

Issue description

I'm always getting an error and warning when trying to dynamic lazy load the Button component.

Warning: Critical dependency: the request of a dependency is an expression

Error: Cannot find module './Button'
(anonymous function)
.../dynamic-lazy-load/src lazy groupOptions: {} namespace object:5

About

Problem reproduction when lazily resolving a path stored in a variable

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published