Skip to content

Error: You may need an appropriate loader to handle this file type? #1

@YuxinChou

Description

@YuxinChou

Hello.
How do I fix this problem?

Used:

> import Duoshuo from 'react-duoshuo';
> <Duoshuo thread="/blog/2015/05/15/react-and-webpack/" url="http://lingyu.wang/2015/05/15/react-and-webpack/" shortName="skyinlayer"/>

Error:

ERROR in ./~/react-duoshuo/src/index.js
Module parse failed: /Users/mrain/Downloads/tbFront/node_modules/react-duoshuo/src/index.js Line 1: Unexpected token
You may need an appropriate loader to handle this file type.
| import { Duoshuo } from './lib/Duoshuo';
|
| export default Duoshuo;
@ ./src/routes/Contact/components/Contact.jsx 26:20-44

Thanks.

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