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

Problem loading postcss example #964

Closed
rickyrauch opened this issue Feb 3, 2017 · 5 comments
Closed

Problem loading postcss example #964

rickyrauch opened this issue Feb 3, 2017 · 5 comments
Assignees

Comments

@rickyrauch
Copy link

rickyrauch commented Feb 3, 2017

Hello,

I'm trying to run the postcss example and after running I'm getting this error:

  1 | import _JSXStyle from "styled-jsx/style";
  2 | import React from "react";
> 3 | import _JSXStyle from "styled-jsx/style";
    |        ^
  4 | export default (function (props) {
  5 |   return React.createElement(
  6 |     "div",
    at File.buildCodeFrameError (/Users/ricardorauch/Sites/example.com/node_modules/babel-core/lib/transformation/file/index.js:431:15)
    at Scope.checkBlockScopedCollisions (/Users/ricardorauch/Sites/example.com/node_modules/babel-traverse/lib/scope/index.js:402:27)
    at Scope.registerBinding (/Users/ricardorauch/Sites/example.com/node_modules/babel-traverse/lib/scope/index.js:596:16)
    at Scope.registerDeclaration (/Users/ricardorauch/Sites/example.com/node_modules/babel-traverse/lib/scope/index.js:520:14)
    at Object.Declaration (/Users/ricardorauch/Sites/example.com/node_modules/babel-traverse/lib/scope/index.js:176:36)
    at NodePath._call (/Users/ricardorauch/Sites/example.com/node_modules/babel-traverse/lib/path/context.js:76:18)
    at NodePath.call (/Users/ricardorauch/Sites/example.com/node_modules/babel-traverse/lib/path/context.js:48:17)
    at NodePath.visit (/Users/ricardorauch/Sites/example.com/node_modules/babel-traverse```

Thanks!
@OlegLustenko
Copy link

OlegLustenko commented Feb 12, 2017

I'd removed jsx tag from <style jsx> ... </style> and this issue was fixed.
You can figure out will it work for you as temporary solution.

@arunoda
Copy link
Contributor

arunoda commented Feb 12, 2017

@OlegLustenko then it's not styled-jsx. It's a generic <style/> tag.

@OlegLustenko
Copy link

Yes Arunoda, you are right

@sarukuku
Copy link

What's the plan here with this?

@timneutkens
Copy link
Member

@lock lock bot locked as resolved and limited conversation to collaborators May 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants