-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
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:
-
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. -
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
moimael
Metadata
Metadata
Assignees
Labels
No labels