andreypopp / andreypopp/reactdown

Does not build with React 16

Đang mở
#28 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
117
Fork
10
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I'm trying to use this library with [react-static](https://github.com/nozzle/react-static) and I'm getting the following error on build:

```
Failed to rebuild.
./node_modules/reactdown/lib/runtime.js
Module not found: Can't resolve 'react/lib/merge' in '/path/to/project/node_modules/reactdown/lib'
```

In my _MarkdownPost.js_ component I am using it like this:

```
import React from 'react'
import { getRouteProps, Link } from 'react-static'
import reactdown from 'reactdown'

export default getRouteProps(({ post }) => {
const Markdown = reactdown(post.body)

return (


{'<'} Back


{Markdown.meta.title}




)
})
```

I believe the issue is caused by React 16 changing some internals used by this library. The version of `react` used is **16.1.0** and `reactdown` **0.8.0**. Can anyone confirm? Is there a work-around or plans to update this library?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.