fix: storybook should use absolute paths (#3119)

This commit is contained in:
Kira Pilot
2022-07-22 11:02:54 -04:00
committed by GitHub
parent f43eb0e77c
commit 882ee55fd0
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ module.exports = {
// //
// SEE: https://storybook.js.org/docs/react/configure/webpack // SEE: https://storybook.js.org/docs/react/configure/webpack
webpackFinal: async (config) => { webpackFinal: async (config) => {
config.resolve.modules = [path.resolve(__dirname, ".."), "node_modules"] config.resolve.modules = [path.resolve(__dirname, ".."), "node_modules", "../src"]
return config return config
}, },
} }

View File

@ -1,7 +1,7 @@
import Button from "@material-ui/core/Button" import Button from "@material-ui/core/Button"
import RefreshIcon from "@material-ui/icons/Refresh" import RefreshIcon from "@material-ui/icons/Refresh"
import { Stack } from "components/Stack/Stack"
import { FC } from "react" import { FC } from "react"
import { Stack } from "../Stack/Stack"
const Language = { const Language = {
retryMessage: "Retry", retryMessage: "Retry",