From 7cbb26cbdb8a2de20a05ae61227a3f85a888931b Mon Sep 17 00:00:00 2001 From: Scott Martin <92527868+sm-kc@users.noreply.github.com> Date: Tue, 6 Jun 2023 20:27:54 +0100 Subject: [PATCH] Correct import statement for all React components (#1363) The current statement is incorrect and will result in `Module not found: Package path ./dist/shoelace is not exported from package /your/path/to/node_modules/@shoelace-style/shoelace (see exports field in /your/path/to/node_modules/@shoelace-style/shoelace/package.json)` --- docs/tutorials/integrating-with-nextjs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorials/integrating-with-nextjs.md b/docs/tutorials/integrating-with-nextjs.md index e5f78bac..6d9a5e25 100644 --- a/docs/tutorials/integrating-with-nextjs.md +++ b/docs/tutorials/integrating-with-nextjs.md @@ -59,7 +59,7 @@ function CustomEls({ URL }) { setBasePath(`${URL}/static/static`); // This imports all components - import('@shoelace-style/shoelace/dist/shoelace'); + import('@shoelace-style/shoelace/dist/react'); // If you're wanting to selectively import components, replace this line with your own definitions // import("@shoelace-style/shoelace/dist/components/button/button");