Skip to content

Yarn Plug'n'Play support #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
izznat opened this issue Jul 28, 2020 · 11 comments · Fixed by #217
Closed

Yarn Plug'n'Play support #160

izznat opened this issue Jul 28, 2020 · 11 comments · Fixed by #217
Labels
enhancement New feature or request

Comments

@izznat
Copy link

izznat commented Jul 28, 2020

This extension is really awesome! But, not yet supported by Yarn VS Code SDK. Please make it works with Yarn 2 Plug'n'Play. Thanks!

@nliapis
Copy link

nliapis commented Aug 3, 2020

hello, as @izznatsir mentioned above, is there any plan to support Yarn PnP?

@bradlc bradlc added the enhancement New feature or request label Aug 21, 2020
@rizrmd
Copy link

rizrmd commented Oct 8, 2020

I just compiled DanSnow's version, Download it at my gdrive
It's working on my machine™.

@FuJuntao
Copy link

FuJuntao commented Nov 2, 2020

I just compiled DanSnow's version, Download it at my gdrive
It's working on my machine.

I download the file and installed, but still not working.

"typescript": "^4.1.0-beta",
"tailwindcss": "^1.9.6",

@rizrmd
Copy link

rizrmd commented Nov 2, 2020

Well, make sure you have tailwind.config.js on root project and installed tailwindcss module on root project.

I'm puzzled too when my compiled extension does not work in my workspace, and then after tinkering for a while it does work only if I added it on root.

So currently I have duplicate dependencies both on root and on my workspace...

@rizrmd
Copy link

rizrmd commented Nov 2, 2020

just in case, this is my tailwind.config.js

module.exports = {
  future: {
    removeDeprecatedGapUtilities: true,
    purgeLayersByDefault: true,
  },
  purge: ['./**/*.{js,jsx,ts,tsx}'],
  theme: {
    extend: {},
  },
  variants: {},
  plugins: [],
}

make sure the purge properties are like above, because when tsx / jsx is not included, the extension will refuse to load....

@FuJuntao
Copy link

FuJuntao commented Nov 2, 2020

Thank you for the replies, @rizkyramadhan. I added tailwindcss to root dependencies, and it worked. It seems that tailwind.config.js dosen't have to be at root level.

@rizrmd
Copy link

rizrmd commented Nov 2, 2020

It's weird, sometime it works, sometime it doesn't... So for peace of mind, i put tailwind.config.js at root :)

@FuJuntao
Copy link

FuJuntao commented Nov 3, 2020

I run into this problem Error: Cannot find module 'tailwindcss/defaultTheme', when I try to require 'tailwindcss/defaultTheme' in tailwind.config.js

@jon301
Copy link

jon301 commented Nov 14, 2020

I just compiled DanSnow's version, Download it at my gdrive
It's working on my machine™.

I confirm this version also worked for me.
I don't have any root tailwind.config.js as my project is monorepo, but still had to install tailwindcss in the root package to make it work.

@jon301
Copy link

jon301 commented Nov 18, 2020

Intellisense does not work anymore - even with DanSnow's version - with Tailwind v2 :/

@rizrmd
Copy link

rizrmd commented Nov 19, 2020

maybe stick to tailwind v1 ?

as tailwind v2 are too different in their internal mechanics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
6 participants