Skip to content
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

Fixed bug where styled-jsx examples don't work because of a wrong plugin #23414

Merged
merged 8 commits into from
Apr 19, 2021

Conversation

M1ck0
Copy link
Contributor

@M1ck0 M1ck0 commented Mar 26, 2021

Bug

Fixes #23293.

Problem was that styled-jsx-plugin-sass was used instead of @styled-jsx/plugin-sass so it didn't work.

You can refer to the issue that is linked for more info.

@ijjk ijjk added the examples Issue/PR related to examples label Mar 26, 2021
@M1ck0 M1ck0 changed the title Fixed bug where styled-jsx projects don't work because of a wrong plugin. FIxes #23293 Fixed bug where styled-jsx projects don't work because of a wrong plugin Mar 26, 2021
@M1ck0 M1ck0 changed the title Fixed bug where styled-jsx projects don't work because of a wrong plugin Fixed bug where styled-jsx examples don't work because of a wrong plugin Mar 26, 2021
@@ -13,8 +13,7 @@
"next": "^10.0.0",
"sass": "^1.32.4",
"react": "17.0.1",
"react-dom": "17.0.1",
"styled-jsx-plugin-sass": "^1.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact, we still need to have @styled-jsx/plugin-sass in devDependencies and sass should be in devDependencies.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, we don't need @styled-jsx/plugin-sass because styled-jsx is shipped with NextJS and it works out of the box.

And yeah, you are right. I will put sass in dev dependencies now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes styled-jsx is there out of the box in next but it is not the case for this plugin, to use it, you need to install it on your own.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, you are right. My bad. I added it now.

moved `sass` in devDependencies
added `sass` in devDependencies
added `@styled-jsx/plugin-sass` to devDependencies
added `@styled-jsx/plugin-sass` to devDependencies
@kodiakhq kodiakhq bot merged commit 3892453 into vercel:canary Apr 19, 2021
SokratisVidros pushed a commit to SokratisVidros/next.js that referenced this pull request Apr 20, 2021
…gin (vercel#23414)

## Bug

Fixes vercel#23293. 

Problem was that `styled-jsx-plugin-sass` was used instead of `@styled-jsx/plugin-sass` so it didn't work. 

You can refer to the issue that is linked for more info.
@vercel vercel locked as resolved and limited conversation to collaborators Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
examples Issue/PR related to examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

styled-jsx: plugins is not a function
4 participants