andreypopp / andreypopp/reactdown

Does not build with React 16

オープン
#28 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
117
フォーク
10
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。