Skip to content

v0.10.0 doesn't compatible with create-react-app #439

@cpunion

Description

@cpunion

I created a repo at https://github.com/cpunion/reproduce-import-graphiql-css-error to reproduce this issue. It created by create-react-app, and create-react-app uses css-loader and postcss-loader to process .css files. So maybe it doesn't compatible with css-loader or postcss-loader.

Steps:

  1. Checkout the 2nd commit cpunion/reproduce-import-graphiql-css-error@9e1681c, it imports css of graphiql@0.9.3 by import 'graphiql/graphiql.css', and it works fine.

  2. Checkout the last commit cpunion/reproduce-import-graphiql-css-error@3ac8408, it uses graphiql@0.10.0 and doesn't work.

Errors:

Failed to compile.

Error in ./~/graphiql/graphiql.css
Syntax error: Unexpected token  in JSON at position 17977
    at JSON.parse (<anonymous>)
 @ ./~/graphiql/graphiql.css 4:14-107 13:2-17:4 14:20-113

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