Skip to content

graphql-tag/loader with webpack hot load #77

Open
@developerworks

Description

@developerworks
   
    ERROR in ./src/components/role/projects.graphql
    Module parse failed: /Users/hezhiqiang/webpack2/src/components/role/projects.graphql Unexpected token (1:6)
    You may need an appropriate loader to handle this file type.
    | query RoleIndex {
    |   roles {
    |     id
     @ ./src/components/role/RoleIndex.js 21:0-49
     @ ./src/App.js
     @ ./src/index.js
     @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server babel-polyfill react-hot-loader/patch ./src/index

Compile time no errors, but when modify a module that include the .graphql file, the error raised.

Webpack version: 2.4.1

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