From e8f1a9dca2cc366bfe386b929abba5c672d3a179 Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Tue, 23 Nov 2021 21:39:02 +0100 Subject: [PATCH] chore(storybook): add @gatsbyjs/reach-router aliases --- .storybook/main.js | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.storybook/main.js b/.storybook/main.js index 7d7ea97ed..4eb0dda79 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -85,6 +85,11 @@ module.exports = { ] }) + config.resolve.alias['@reach/router'] = path.resolve( + __dirname, + '../node_modules/@gatsbyjs/reach-router' + ) + // Prefer Gatsby ES6 entrypoint (module) over commonjs (main) entrypoint config.resolve.mainFields = ['browser', 'module', 'main'] diff --git a/package.json b/package.json index dee663f0e..68a726641 100644 --- a/package.json +++ b/package.json @@ -96,7 +96,7 @@ "@kikobeats/use-query-state": "~1.0.6", "@microlink/mql": "~0.10.4", "@microlink/react": "~5.5.7", - "@microlink/recipes": "~1.2.5", + "@microlink/recipes": "~1.2.6", "@radix-ui/react-popper": "0.1.1", "@stripe/react-stripe-js": "~1.6.0", "@stripe/stripe-js": "~1.21.1",