Skip to content

Error after upgrading jQuery to 4.0: i.a.type is not a function #4787

Description

@Zarlok

Checklist

  • I've looked at the documentation to make sure the behavior isn't documented and expected.
  • I'm sure this is an issue with Summernote, not with my app or other dependencies (Angular, Cordova, React, etc.).
  • I've searched through the current issues to make sure this hasn't been reported yet.
  • My issue is pertinent to this repository of Summernote (jQuery), or I was unable to have my issue resolved from the relevant version I'm using, such as Angular, dJango, Rails or React. Please try your issue at the relevent repository first.
  • I understand that issues without interaction for more than 14 days (2 weeks), may be closed at our discretion. We do this, as sometimes issues are abandoned. We may at our discretion, add issues to the relevant project to be looked at, or for maintainers to work through as time permits. This is to help keep issues relevant to the current version of Summernote, and to reduce clutter.
  • I agree to follow the Code of Conduct that this project adheres to.

Steps to reproduce

File: summernote-lite.min.js
After updating jQuery from version 3.x to jQuery 4.0, I encountered the following runtime error in my project:

  • i.a.type is not a function

This error appears during execution of existing code that previously worked without issues under jQuery 3.x. It seems related to the removal of several deprecated APIs in jQuery 4.0, particularly the jQuery.type() utility, which is no longer available.

Expected behavior

The application should run without errors, or deprecated APIs should provide clearer migration guidance.

Current behavior

The application throws the error i.a.type is not a function, breaking related functionality.

Minimal example reproducing the issue

No response

Environment

  • Summernote version: 0.9.1
  • Browser (with version): Chrome 144.0.7559.133
  • OS/Platform (with version): Windows 11

No activity

Activity on this issue will appear here.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions