styled-jsx: Cannot find module 'styled-jsx/css'
Hello everyone, thanks for the great project and all the work you guys are doing at Zeit, incredibly awesome work.
I’m having a weird problem when trying to import styled-jsx/css.
I see that you have specs for it so I think it’s extremely unlikely to be a problem with the project itself.
But I decide to open the issue anyway in case I’m missing something…
I’m using "styled-jsx": "2.0.2", things that I tried without success:
- Importing it on my project with NextJs
- Adding
styled-jsxas my project dependency - Creating an empty project, adding
styled-jsxas dependency, and trying to simplyrequire('styled-jsx/css') - Using the same node version as you use on travis
- Cloning the project + yarn link + simply requiring it
All of them using 2.0.2 and with the same outcome: Cannot find module 'styled-jsx/css'.
Any thoughts? I hope it’s not something stupid from my side 😓💭
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 2
- Comments: 28 (2 by maintainers)
@nfantone yeah sorry about that
@giuseppeg Ok, found out that this feature is still to be released. My bad.
Still, it’s rather confusing to see “docs for v3” instructing you to install the module using
npm install --save styled-jsx, which won’t get you the version of the library you’re documenting. Specially since the default branch of the repo isnextand that’s theREADME.mdyou see when landing here.