Closed MildTomato closed 3 years ago
I wanted to work on this enhancement, but storybook isn't loading any stylesheets. Could you point where I would be going wrong?
git clone https://github.com/supabase/ui.git
cd ui
npm install
npm run storybook
@harshcut that looks strange. I can try and recreate it and see what the issue is. there's some npm errors relating to postcss that might be causing this, which i'm trying to fix now.
in the meantime can you confirm the following, as it might help isolate the issue:
what version of node are you running?
run node -v
run npm list
and get the following:
@harshcut You might have more luck now on the master
branch.
There did seem to be an error with PostCSS, which might have caused the issue with tailwind not generating css.
I tried npm install
and it resulted in an node-gyp
error (which hasn't happened before), so I installed it using yarn
(using yarn import
) but it still won't generate css.
P.S. Even after npm install
success, storybook won't load css.
@harshcut just to make sure we've tried this.
Have you tried deleting package-lock.json
and the ui/node-modules folder before running npm install
?
I have the same issue, css styles aren't applied to components in storybook.
Did a fresh install.
node -v
: v15.12.0
Version of react: 17.0.2 Version of react-dom: 17.0.2 Version of tailwindcss: tailwindcss@npm:@tailwindcss/postcss7-compat@2.0.4 Version of postcss: 7.0.35 Version of @storybook/react: 6.2.2
@harshcut just to make sure we've tried this. Have you tried deleting
package-lock.json
and the ui/node-modules folder before runningnpm install
?
Yes @MildTomato, I removed package-lock.json
and node_modules
from the root directory. This time npm install
resulted in a upstream dependency conflict (logs below). After adding --legacy-peer-deps
it installed but didn't generate the styles.
git clone https://github.com/supabase/ui.git
cd ui
rm package-lock.json
npm install --legacy-peer-deps
npm run storybook
Not sure what is causing this yet - I'm still trying to replicate the issue myself.
If anyone knows what is causing this and has a fix, a PR would be amazing.
Hey @Iamshankhadeep, it would be helpful if you could provide us your system information and the steps you did take to run this project on your local machine. I am having a problem with storybook not loading the styles.
Hey @Iamshankhadeep, it would be helpful if you could provide us your system information and the steps you did take to run this project on your local machine. I am having a problem with storybook not loading the styles.
- Operating System
- Version of npm
- Version of node
Linux, npm v6.14.13 and node v14.15.5
Feature request
Is your feature request related to a problem? Please describe.
Update InputNumber to have styled increment toggles rather than using native browser controls
antdesign
chakra