ElemeFE / ElemeFE/element-react

Failed to compile

Open
#954 4 comments 13 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.8k
Forks
435
PR merge metrics
No merged PRs in 30d

Description

### Description

I am using version "element-react": "^1.4.33
As soon as Import any comoponent from element-react, I get the below error:
```
Failed to compile.

./node_modules/element-react/dist/npm/es5/libs/animate/index.js
Module not found: Can't resolve 'react-hot-loader' in 'C:\Chidu\Projects\amplifyagora\node_modules\element-react\dist\npm\es5\libs\animate'
```
Below is my simple code:
```

import React from "react";
import { Menu as Nav, Icon, Button } from "element-react";

const Navbar = () =>

Navbar
;

export default Navbar;

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.