Skip to content

Upgrading to v7.0.0.-* Throws "_JSXStyle" has already been declared error #5080

@ssylvia

Description

@ssylvia

Bug report

Describe the bug

./pages/demo/card.tsx 3:7
Module parse failed: Identifier '_JSXStyle' has already been declared (3:7)
You may need an appropriate loader to handle this file type.
| var _jsxFileName = "/Users/user/path/packages/storymaps-app/pages/demo/card.tsx";
| import _JSXStyle from "styled-jsx/style";
> import _JSXStyle from "styled-jsx/style";
| import React from 'react';
| import { Card, CardBody, CardTitle, CardSubtitle, CardText } from 'storymaps-components/build';

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Clone this repo: https://github.com/ssylvia/styled-jsx-multi-declare
  2. It's a monorepo, yarn install from root.
  3. cd packages/app
  4. yarn dev
  5. Open browser at localhost:3000

System information

  • OS: macOS
  • Version of Next.js: 7.0.0-10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions