diff --git a/packages/react-reconciler/src/ReactFiberLazyComponent.js b/packages/react-reconciler/src/ReactFiberLazyComponent.js index 8a002946ac076..39cd14a098efb 100644 --- a/packages/react-reconciler/src/ReactFiberLazyComponent.js +++ b/packages/react-reconciler/src/ReactFiberLazyComponent.js @@ -42,7 +42,7 @@ export function readLazyComponentType(lazyComponent: LazyComponent): T { false, 'lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + - "const MyComponent = lazy(() => import('./MyComponent'))", + 'const MyComponent = lazy(() => import(\'./MyComponent\'))', moduleObject, ); }