Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package in npm lack of build files. #6

Closed
liudonghua123 opened this issue Nov 5, 2018 · 1 comment
Closed

package in npm lack of build files. #6

liudonghua123 opened this issue Nov 5, 2018 · 1 comment

Comments

@liudonghua123
Copy link

I installed this package via npm i -S react-diff-viewer, And I used ReactDiffViewer in my code, but my app complained that react-diff-viewer not found like this.

Module not found: Can't resolve 'react-diff-viewer' in 'D:\code\electron\react-material-electron\src\pages'
Compiling...
Failed to compile.

I checked the node_modules/react-diff-viewer and found that no lib directory exits there.

So I think you should npm run build before publish to npm. Currently, I manual build this package and copy lib directory to node_modules/react-diff-viewer.

@praneshr
Copy link
Owner

praneshr commented Nov 7, 2018

Fixed in a07b292

You can install the new version v1.0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants