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

How can I use this with TSX? #94

Open
eduhash-hmroh opened this issue Nov 12, 2020 · 0 comments
Open

How can I use this with TSX? #94

eduhash-hmroh opened this issue Nov 12, 2020 · 0 comments

Comments

@eduhash-hmroh
Copy link

I'm using CRA with react-script@4.0.0.
After I installed react-summernote, I solved typescript error with the below code.

declare module 'react-summernote' {
  var _reactSummernote: any;
  export = _reactSummernote;
}

the below error has occured while compling.

Failed to compile.

./node_modules/react-summernote/dist/react-summernote.js
Module not found: Can't resolve 'jquery' in '/Users/hmroh/Projects/Eduhash/DailyMockTest/node_modules/react-summernote/dist'

After I install jquery module, the below error has occured on browser.

  267 |       }
  268 |     }
  269 |   });
> 270 | })(jQuery);
  271 | 
  272 | /***/ })
  273 | 

I checked out #22 but window object show me an error like below.

image

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

1 participant