Skip to content

How can I use this with TSX? #94

Open

Description

@eduhash-hmroh

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions