Closed oekazuma closed 1 year ago
Did you ever find a workaround for this?
I don't know of any workaround except to run it with npm
or yarn
@brunobely @oekazuma I have it working with pnpm.
Check it out on Stackblitz: https://stackblitz.com/edit/sveltejs-kit-template-default-fd1ka1?file=tailwind.config.cjs
if it doesn't automatically show you'll need to click the refresh button on the top left
⬇️ ⬇️ ⬇️
.npmrc
file (this appeared to get rid of some of the bugs in the console)
engine-strict = true
shamefully-hoist = true
auto-install-peers = true
3.2.4
and added other dependencies to package.json
npx svelte-add@latest tailwindcss
tailwind.css
file and imported it in using histoire.setup.js
filehistoire.config.js
and handled everything in vite.config.js
(not sure if this was needed or not)setupFile
in vite.config.js
tailwind.config
// tailwind.config.cjs
content: ['./src/**/*.{html,js,svelte,md,svx,ts}']
@oneezy Thank you!
I have tried and concluded that perhaps shamefully-hoist=true
is important.
I will need to note in the documentation that shamefully-hoist=true
needs to be added to resolve this issue.
Glad it worked out for you @oekazuma !
shamefully-hoist
is a workaround and it'd be best not to rely on it
Describe the bug
Tailwind CSS auto design tokens work fine when run in npm or yarn, but not in pnpm.
Error Details
Message displayed on first startup after removing
node_modules
Reproduction
https://github.com/oekazuma/repro-crach-use-pnpm-histoire
System Info
Used Package Manager
pnpm
Validations