You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I installed this package via
npm i -S react-diff-viewer
, And I usedReactDiffViewer
in my code, but my app complained thatreact-diff-viewer
not found like this.I checked the
node_modules/react-diff-viewer
and found that nolib
directory exits there.So I think you should
npm run build
before publish to npm. Currently, I manual build this package and copylib
directory tonode_modules/react-diff-viewer
.The text was updated successfully, but these errors were encountered: