Closed kobe-leonelceolin closed 1 month ago
Hi there @kobe-leonelceolin ! Thanks for opening an issue with us.
I can only think of a path related issue. The Typography files are located inside the Typography folder and should be at components?
Or the imports should be import { Typography } from './Typography/Typography';
?
Not sure what is your specific scenario.
Let us know how it goes
Hi there @kobe-leonelceolin ! Thanks for opening an issue with us.
I can only think of a path related issue. The Typography files are located inside the Typography folder and should be at components?
Or the imports should be
import { Typography } from './Typography/Typography';
?Not sure what is your specific scenario.
Let us know how it goes
Hi @LeoDiazL , thanks for your reply!
i tried to use the import the way that you mentioned but the error doesn't disappear
this is my structure
components/Typpography/Typography
and like i added the description of the issue, inside of the Typography.stories.tsx i'm calling my component from ./Typography and i'm having the error with the webpack, i also tried to import on those ways:
import { Typography } from './Typography/Typography';
import { Typography } from '@/components/Typography/Typography';
import { Typography } from '.../../components/Typography/Typography';
but none of them worked as well!
more context, i also tried to do the configuration in this docs storybook-webpack-docs but no success as well
Hi @kobe-leonelceolin
I'm pretty sure is something specific to your repo, and most likely a path-related thing. It is really hard to pick up exactly what could be happening.
Are you able to make this work in a local environment? I would start there first.
I'll close this issue as it's not really an issue of our action, but thanks for reaching us! You could also reach us through Discord.
I'm trying to upload my storybook to github pages and i'm facing this problem, does anyone can help?
More information: node version: v20.15.1 storybook: "^8.2.5" next: "14.2.5",
components/Typography.tsx
components/Typography.stories.tsx
storybook/main.ts
storybook/preview.ts
.github/workflows/deploy-github-pages.yaml