andreypopp / andreypopp/reactdown

Does not build with React 16

Open
#28 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
117
Forks
10
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.