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

hasOwnProperty error with jQuery 3.5.0 #2430

Closed
rjaros opened this issue Apr 11, 2020 · 12 comments · Fixed by crf-devs/resop#363
Closed

hasOwnProperty error with jQuery 3.5.0 #2430

rjaros opened this issue Apr 11, 2020 · 12 comments · Fixed by crf-devs/resop#363

Comments

@rjaros
Copy link

rjaros commented Apr 11, 2020

When using new jQuery 3.5.0 there is an error with missing hasOwnProperty() function for data attributes used here:

if (dataAttributes.hasOwnProperty(dataAttr) && $.inArray(dataAttr, DISALLOWED_ATTRIBUTES) !== -1) {

Probably the root problem is the fix for this issue in jQuery:
jquery/jquery#3256

@skerbis
Copy link

skerbis commented Apr 11, 2020

Same problem here

@sirosfakhri
Copy link

same here.
with jquery 3.4.1 works like a charm, with jquery 3.5.0 got the error

Uncaught TypeError: options.hasOwnProperty is not a function

@Samin005
Copy link

Samin005 commented Apr 13, 2020

Facing the same issue. With jQuery 3.5.0:

ERROR TypeError: dataAttributes.hasOwnProperty is not a function
    at HTMLSelectElement.<anonymous> (bootstrap-select.js:3080)
    at Function.each (jquery.min.js:2)
    at S.fn.init.each (jquery.min.js:2)
    at S.fn.init.Plugin [as selectpicker] (bootstrap-select.js:3070)
    at EditCompanyComponent.refreshSelect (edit-company.component.ts:42)
    at HTMLDocument.<anonymous> (edit-company.component.ts:27)
    at e (jquery.min.js:2)
    at t (jquery.min.js:2)
    at ZoneDelegate.invokeTask (zone-evergreen.js:399)
    at Object.onInvokeTask (core.js:41442)

@longopy
Copy link

longopy commented Apr 14, 2020

same here.
with jquery 3.4.1 works like a charm, with jquery 3.5.0 got the error

Uncaught TypeError: options.hasOwnProperty is not a function

I fix it in angular changing the jquery version:
"jquery": "^3.4.1" to "jquery": "3.4.1"

@caseyjhol
Copy link
Member

Looks like our best bet (for now) might be to wait for jQuery v3.5.1 for this to get resolved. This issue will probably get reintroduced in jQuery v4.0.0, but I'm hoping we won't need jQuery as a dependency by then.

@didaxRedux
Copy link

didaxRedux commented Apr 20, 2020

At this moment (for who wants), it can be solved by altering the code of the bootstrap-select plugin:

Object.prototype.hasOwnProperty.call(options, i)
instead of
options.hasOwnProperty(i)

It can be considered a valid correction afterall because it much safer.

@caseyjhol
Copy link
Member

The fix suggested by @didaxRedux will be a part of the next release. Thanks @didaxRedux!

@caseyjhol caseyjhol changed the title Error with jQuery 3.5.0 hasOwnProperty error with jQuery 3.5.0 Apr 21, 2020
@caseyjhol
Copy link
Member

Released in v1.13.15!

@caseyjhol caseyjhol unpinned this issue Apr 21, 2020
imphil added a commit to librecores/librecores-web that referenced this issue May 4, 2020
Fix bootstrap-select not working any more, see
snapappointments/bootstrap-select#2430 for
details.

vagrant@librecores:/var/www/lc/site$ yarn upgrade
yarn upgrade v1.22.4
[1/4] Resolving packages...
warning @symfony/webpack-encore > assets-webpack-plugin > mkdirp@0.5.3: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
warning @symfony/webpack-encore > webpack-dev-server > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning @symfony/webpack-encore > webpack > watchpack > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning @symfony/webpack-encore > webpack-dev-server > chokidar > fsevents@1.2.12: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning @symfony/webpack-encore > resolve-url-loader > rework > css > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning @symfony/webpack-encore > resolve-url-loader > rework > css > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning @symfony/webpack-encore > resolve-url-loader > rework > css > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning instantsearch.js > hogan.js > mkdirp@0.3.0: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
warning instantsearch.js > prop-types > fbjs > core-js@1.2.7: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
warning node-sass > request@2.88.2: request has been deprecated, see request/request#3142
warning node-sass > node-gyp > request@2.88.2: request has been deprecated, see request/request#3142
[2/4] Fetching packages...
warning mini-css-extract-plugin@0.4.2: Invalid bin field for "mini-css-extract-plugin".
info fsevents@1.2.12: The platform "linux" is incompatible with this module.
info "fsevents@1.2.12" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > sass-loader@7.3.1" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0".
warning " > trumbowyg@2.21.0" has unmet peer dependency "jQuery@>=1.8".
[4/4] Rebuilding all packages...
success Saved lockfile.
success Saved 702 new dependencies.
info Direct dependencies
├─ @symfony/webpack-encore@0.27.0
├─ algoliasearch@4.1.0
├─ autocomplete.js@0.37.1
├─ autoprefixer@9.7.6
├─ bootstrap-select@1.13.16
├─ bootstrap@4.4.1
├─ chartist@0.11.4
├─ cookieconsent@3.1.1
├─ font-awesome@4.7.0
├─ instantsearch.js@2.8.0
├─ jquery@3.5.0
├─ js-yaml-loader@1.2.2
├─ kuende-livestamp@1.1.2
├─ moment@2.25.1
├─ node-sass@4.14.0
├─ path@0.12.7
├─ popper.js@1.16.1
├─ postcss-loader@3.0.0
├─ sass-loader@7.3.1
└─ trumbowyg@2.21.0
info All dependencies
├─ @algolia/cache-browser-local-storage@4.1.0
├─ @algolia/cache-in-memory@4.1.0
├─ @algolia/client-account@4.1.0
├─ @algolia/client-analytics@4.1.0
├─ @algolia/client-recommendation@4.1.0
├─ @algolia/logger-console@4.1.0
├─ @algolia/requester-browser-xhr@4.1.0
├─ @algolia/requester-node-http@4.1.0
├─ @babel/core@7.9.6
├─ @babel/helper-builder-binary-assignment-operator-visitor@7.8.3
├─ @babel/helper-compilation-targets@7.9.6
├─ @babel/helper-define-map@7.8.3
├─ @babel/helper-explode-assignable-expression@7.8.3
├─ @babel/helper-hoist-variables@7.8.3
├─ @babel/helper-member-expression-to-functions@7.8.3
├─ @babel/helper-replace-supers@7.9.6
├─ @babel/helper-validator-identifier@7.9.5
├─ @babel/helper-wrap-function@7.8.3
├─ @babel/helpers@7.9.6
├─ @babel/highlight@7.9.0
├─ @babel/plugin-proposal-async-generator-functions@7.8.3
├─ @babel/plugin-proposal-dynamic-import@7.8.3
├─ @babel/plugin-proposal-json-strings@7.8.3
├─ @babel/plugin-proposal-nullish-coalescing-operator@7.8.3
├─ @babel/plugin-proposal-numeric-separator@7.8.3
├─ @babel/plugin-proposal-object-rest-spread@7.9.6
├─ @babel/plugin-proposal-optional-catch-binding@7.8.3
├─ @babel/plugin-proposal-optional-chaining@7.9.0
├─ @babel/plugin-proposal-unicode-property-regex@7.8.8
├─ @babel/plugin-syntax-numeric-separator@7.8.3
├─ @babel/plugin-syntax-top-level-await@7.8.3
├─ @babel/plugin-transform-arrow-functions@7.8.3
├─ @babel/plugin-transform-async-to-generator@7.8.3
├─ @babel/plugin-transform-block-scoped-functions@7.8.3
├─ @babel/plugin-transform-block-scoping@7.8.3
├─ @babel/plugin-transform-classes@7.9.5
├─ @babel/plugin-transform-computed-properties@7.8.3
├─ @babel/plugin-transform-destructuring@7.9.5
├─ @babel/plugin-transform-dotall-regex@7.8.3
├─ @babel/plugin-transform-duplicate-keys@7.8.3
├─ @babel/plugin-transform-exponentiation-operator@7.8.3
├─ @babel/plugin-transform-for-of@7.9.0
├─ @babel/plugin-transform-function-name@7.8.3
├─ @babel/plugin-transform-literals@7.8.3
├─ @babel/plugin-transform-member-expression-literals@7.8.3
├─ @babel/plugin-transform-modules-amd@7.9.6
├─ @babel/plugin-transform-modules-commonjs@7.9.6
├─ @babel/plugin-transform-modules-systemjs@7.9.6
├─ @babel/plugin-transform-modules-umd@7.9.0
├─ @babel/plugin-transform-named-capturing-groups-regex@7.8.3
├─ @babel/plugin-transform-new-target@7.8.3
├─ @babel/plugin-transform-object-super@7.8.3
├─ @babel/plugin-transform-property-literals@7.8.3
├─ @babel/plugin-transform-regenerator@7.8.7
├─ @babel/plugin-transform-reserved-words@7.8.3
├─ @babel/plugin-transform-shorthand-properties@7.8.3
├─ @babel/plugin-transform-spread@7.8.3
├─ @babel/plugin-transform-sticky-regex@7.8.3
├─ @babel/plugin-transform-template-literals@7.8.3
├─ @babel/plugin-transform-typeof-symbol@7.8.4
├─ @babel/plugin-transform-unicode-regex@7.8.3
├─ @babel/preset-env@7.9.6
├─ @babel/preset-modules@0.1.3
├─ @babel/runtime@7.9.6
├─ @symfony/webpack-encore@0.27.0
├─ @types/anymatch@1.3.1
├─ @types/events@3.0.0
├─ @types/glob@7.1.1
├─ @types/minimatch@3.0.3
├─ @types/q@1.5.2
├─ @types/source-list-map@0.1.2
├─ @types/tapable@1.0.5
├─ @types/uglify-js@3.9.0
├─ @types/webpack-sources@0.1.7
├─ @types/webpack@4.41.12
├─ @webassemblyjs/floating-point-hex-parser@1.9.0
├─ @webassemblyjs/helper-code-frame@1.9.0
├─ @webassemblyjs/helper-fsm@1.9.0
├─ @webassemblyjs/helper-wasm-section@1.9.0
├─ @webassemblyjs/wasm-edit@1.9.0
├─ @webassemblyjs/wasm-opt@1.9.0
├─ @xtuc/ieee754@1.2.0
├─ accepts@1.3.7
├─ acorn@6.4.1
├─ adjust-sourcemap-loader@2.0.0
├─ agentkeepalive@2.2.0
├─ ajv-errors@1.0.1
├─ ajv@6.12.2
├─ algoliasearch@4.1.0
├─ amdefine@1.0.1
├─ ansi-colors@3.2.4
├─ ansi-html@0.0.7
├─ ansi-styles@3.2.1
├─ anymatch@2.0.0
├─ aproba@1.2.0
├─ are-we-there-yet@1.1.5
├─ argparse@1.0.10
├─ arity-n@1.0.4
├─ arr-flatten@1.1.0
├─ array-find-index@1.0.2
├─ array-flatten@1.1.1
├─ array-union@1.0.2
├─ array-uniq@1.0.3
├─ asap@2.0.6
├─ asn1.js@4.10.1
├─ asn1@0.2.4
├─ assert@1.4.1
├─ assets-webpack-plugin@3.9.12
├─ assign-symbols@1.0.0
├─ async-each@1.0.3
├─ async-foreach@0.1.3
├─ async-limiter@1.0.1
├─ async@2.6.3
├─ asynckit@0.4.0
├─ atob@2.1.2
├─ autocomplete.js@0.37.1
├─ autoprefixer@9.7.6
├─ aws-sign2@0.7.0
├─ aws4@1.9.1
├─ babel-loader@8.1.0
├─ balanced-match@1.0.0
├─ base@0.11.2
├─ base64-js@1.3.1
├─ batch@0.6.1
├─ bcrypt-pbkdf@1.0.2
├─ binary-extensions@1.13.1
├─ block-stream@0.0.9
├─ bluebird@3.7.2
├─ body-parser@1.19.0
├─ bonjour@3.5.0
├─ boolbase@1.0.0
├─ bootstrap-select@1.13.16
├─ bootstrap@4.4.1
├─ brace-expansion@1.1.11
├─ braces@2.3.2
├─ browserify-aes@1.2.0
├─ browserify-cipher@1.0.1
├─ browserify-des@1.0.2
├─ browserify-sign@4.0.4
├─ browserify-zlib@0.2.0
├─ buffer-indexof@1.1.1
├─ buffer-xor@1.0.3
├─ buffer@4.9.2
├─ builtin-status-codes@3.0.0
├─ cacache@12.0.4
├─ cache-base@1.0.1
├─ caller-callsite@2.0.0
├─ caller-path@2.0.0
├─ callsites@2.0.0
├─ camelcase-keys@2.1.0
├─ caniuse-lite@1.0.30001050
├─ caseless@0.12.0
├─ chartist@0.11.4
├─ chownr@1.1.4
├─ chrome-trace-event@1.0.2
├─ cipher-base@1.0.4
├─ class-utils@0.3.6
├─ classnames@2.2.5
├─ clean-webpack-plugin@0.1.19
├─ cliui@3.2.0
├─ clone-deep@4.0.1
├─ coa@2.0.2
├─ code-point-at@1.1.0
├─ collection-visit@1.0.0
├─ color-convert@1.9.3
├─ color-name@1.1.3
├─ color-string@1.5.3
├─ color@3.1.2
├─ combined-stream@1.0.8
├─ commander@2.20.3
├─ commondir@1.0.1
├─ compose-function@3.0.3
├─ compressible@2.0.18
├─ compression@1.7.4
├─ concat-map@0.0.1
├─ concat-stream@1.6.2
├─ connect-history-api-fallback@1.6.0
├─ console-browserify@1.2.0
├─ console-control-strings@1.1.0
├─ constants-browserify@1.0.0
├─ content-disposition@0.5.3
├─ convert-source-map@1.7.0
├─ cookie-signature@1.0.6
├─ cookie@0.4.0
├─ cookieconsent@3.1.1
├─ copy-concurrently@1.0.5
├─ copy-descriptor@0.1.1
├─ core-js-compat@3.6.5
├─ core-js@1.2.7
├─ core-util-is@1.0.2
├─ create-ecdh@4.0.3
├─ create-hmac@1.1.7
├─ cross-spawn@6.0.5
├─ crypto-browserify@3.12.0
├─ css-color-names@0.0.4
├─ css-declaration-sorter@4.0.1
├─ css-loader@2.1.1
├─ css-select-base-adapter@0.1.1
├─ css-select@1.2.0
├─ css-tree@1.0.0-alpha.37
├─ css-what@2.1.3
├─ css@2.2.4
├─ cssesc@3.0.0
├─ cssnano-preset-default@4.0.7
├─ cssnano-util-raw-cache@4.0.1
├─ cssnano-util-same-parent@4.0.1
├─ cssnano@4.1.10
├─ currently-unhandled@0.4.1
├─ cyclist@1.0.1
├─ d@1.0.1
├─ dashdash@1.14.1
├─ debug@2.6.9
├─ decamelize@1.2.0
├─ decode-uri-component@0.2.0
├─ deep-equal@1.1.1
├─ default-gateway@4.2.0
├─ del@4.1.1
├─ delayed-stream@1.0.0
├─ delegates@1.0.0
├─ des.js@1.0.1
├─ destroy@1.0.4
├─ detect-file@1.0.0
├─ detect-node@2.0.4
├─ diffie-hellman@5.0.3
├─ dns-equal@1.0.0
├─ dns-packet@1.3.1
├─ dns-txt@2.0.2
├─ dom-converter@0.2.0
├─ dom-walk@0.1.2
├─ domain-browser@1.2.0
├─ domhandler@2.4.2
├─ domutils@1.7.0
├─ dot-prop@5.2.0
├─ duplexify@3.7.1
├─ ecc-jsbn@0.1.2
├─ ee-first@1.1.1
├─ electron-to-chromium@1.3.427
├─ emoji-regex@7.0.3
├─ emojis-list@3.0.0
├─ encoding@0.1.12
├─ enhanced-resolve@4.1.0
├─ entities@2.0.0
├─ envify@4.1.0
├─ error-ex@1.3.2
├─ error-stack-parser@2.0.6
├─ es-to-primitive@1.2.1
├─ es5-ext@0.10.53
├─ es6-iterator@2.0.3
├─ es6-promise@4.2.8
├─ es6-symbol@3.1.3
├─ escape-string-regexp@1.0.5
├─ eslint-scope@4.0.3
├─ esrecurse@4.2.1
├─ estraverse@4.3.0
├─ esutils@2.0.3
├─ eventemitter3@4.0.0
├─ eventsource@1.0.7
├─ evp_bytestokey@1.0.3
├─ expand-brackets@2.1.4
├─ expand-tilde@2.0.2
├─ express@4.17.1
├─ ext@1.4.0
├─ extend@3.0.2
├─ extglob@2.0.4
├─ extsprintf@1.3.0
├─ fast-deep-equal@3.1.1
├─ fast-json-stable-stringify@2.1.0
├─ fast-levenshtein@2.0.6
├─ faye-websocket@0.10.0
├─ fbjs@0.8.17
├─ file-loader@1.1.11
├─ fill-range@4.0.0
├─ finalhandler@1.1.2
├─ findup-sync@3.0.0
├─ flush-write-stream@1.1.1
├─ follow-redirects@1.11.0
├─ font-awesome@4.7.0
├─ for-in@1.0.2
├─ foreach@2.0.5
├─ forever-agent@0.6.1
├─ form-data@2.3.3
├─ forwarded@0.1.2
├─ friendly-errors-webpack-plugin@1.7.0
├─ from2@2.3.0
├─ fs-extra@2.1.2
├─ fs.realpath@1.0.0
├─ fstream@1.0.12
├─ gauge@2.7.4
├─ gaze@1.1.3
├─ gensync@1.0.0-beta.1
├─ get-stream@4.1.0
├─ get-value@2.0.6
├─ getpass@0.1.7
├─ glob-parent@3.1.0
├─ glob@7.1.6
├─ global-modules@2.0.0
├─ global-prefix@3.0.0
├─ global@4.4.0
├─ globby@6.1.0
├─ globule@1.3.1
├─ handle-thing@2.0.1
├─ har-schema@2.0.0
├─ har-validator@5.1.3
├─ has-ansi@2.0.0
├─ has-unicode@2.0.1
├─ has-value@1.0.0
├─ hash.js@1.1.7
├─ hex-color-regex@1.1.0
├─ hmac-drbg@1.0.1
├─ hogan.js@3.0.2
├─ hosted-git-info@2.8.8
├─ hpack.js@2.1.6
├─ hsl-regex@1.0.0
├─ hsla-regex@1.0.0
├─ html-comment-regex@1.1.2
├─ html-entities@1.3.1
├─ htmlparser2@3.10.1
├─ http-deceiver@1.2.7
├─ http-parser-js@0.4.10
├─ http-proxy-middleware@0.19.1
├─ http-proxy@1.18.0
├─ http-signature@1.2.0
├─ https-browserify@1.0.0
├─ iconv-lite@0.4.24
├─ icss-replace-symbols@1.1.0
├─ icss-utils@4.1.1
├─ ieee754@1.1.13
├─ immediate@3.2.3
├─ immutability-helper@2.9.1
├─ import-cwd@2.1.0
├─ import-fresh@2.0.0
├─ import-from@2.1.0
├─ import-local@2.0.0
├─ in-publish@2.0.1
├─ indent-string@2.1.0
├─ infer-owner@1.0.4
├─ inflight@1.0.6
├─ ini@1.3.5
├─ instantsearch.js@2.8.0
├─ internal-ip@4.3.0
├─ interpret@1.2.0
├─ invariant@2.2.4
├─ invert-kv@2.0.0
├─ ip-regex@2.1.0
├─ ip@1.1.5
├─ ipaddr.js@1.9.1
├─ is-absolute-url@3.0.3
├─ is-accessor-descriptor@1.0.0
├─ is-arguments@1.0.4
├─ is-arrayish@0.2.1
├─ is-binary-path@1.0.1
├─ is-callable@1.1.5
├─ is-color-stop@1.1.0
├─ is-data-descriptor@1.0.0
├─ is-descriptor@1.0.2
├─ is-directory@0.3.1
├─ is-extglob@2.1.1
├─ is-finite@1.1.0
├─ is-obj@2.0.0
├─ is-path-cwd@2.2.0
├─ is-path-in-cwd@2.1.0
├─ is-path-inside@2.1.0
├─ is-regex@1.0.5
├─ is-resolvable@1.1.0
├─ is-stream@1.1.0
├─ is-svg@3.0.0
├─ is-symbol@1.0.3
├─ is-typedarray@1.0.0
├─ is-utf8@0.2.1
├─ is-windows@1.0.2
├─ isarray@1.0.0
├─ isexe@2.0.0
├─ isomorphic-fetch@2.2.1
├─ isstream@0.1.2
├─ jquery@3.5.0
├─ js-base64@2.5.2
├─ js-tokens@4.0.0
├─ js-yaml-loader@1.2.2
├─ jsesc@2.5.2
├─ json-parse-better-errors@1.0.2
├─ json-schema-traverse@0.4.1
├─ json-schema@0.2.3
├─ json-stringify-safe@5.0.1
├─ json3@3.3.3
├─ jsonfile@2.4.0
├─ jsprim@1.4.1
├─ killable@1.0.1
├─ kuende-livestamp@1.1.2
├─ last-call-webpack-plugin@3.0.0
├─ lcid@2.0.0
├─ leven@3.1.0
├─ load-json-file@1.1.0
├─ load-script@1.0.0
├─ loader-runner@2.4.0
├─ loader-utils@1.4.0
├─ locate-path@3.0.0
├─ lodash.memoize@4.1.2
├─ lodash.uniq@4.5.0
├─ lodash@4.17.15
├─ loglevel@1.6.8
├─ loud-rejection@1.6.0
├─ lru-cache@4.1.5
├─ make-dir@2.1.0
├─ map-age-cleaner@0.1.3
├─ map-obj@1.0.1
├─ map-visit@1.0.0
├─ mdn-data@2.0.4
├─ media-typer@0.3.0
├─ mem@4.3.0
├─ memory-fs@0.4.1
├─ meow@3.7.0
├─ merge-descriptors@1.0.1
├─ methods@1.1.2
├─ miller-rabin@4.0.1
├─ mime-db@1.44.0
├─ mime-types@2.1.27
├─ mime@2.4.5
├─ mimic-fn@2.1.0
├─ min-document@2.19.0
├─ mini-css-extract-plugin@0.4.2
├─ minimalistic-crypto-utils@1.0.1
├─ minimatch@3.0.4
├─ minimist@1.2.5
├─ mississippi@3.0.0
├─ mixin-deep@1.3.2
├─ mkdirp@0.5.5
├─ moment@2.25.1
├─ move-concurrently@1.0.1
├─ multicast-dns-service-types@1.1.0
├─ multicast-dns@6.2.3
├─ nan@2.14.1
├─ nanomatch@1.2.13
├─ negotiator@0.6.2
├─ next-tick@1.0.0
├─ nice-try@1.0.5
├─ node-fetch@1.7.3
├─ node-forge@0.9.0
├─ node-gyp@3.8.0
├─ node-libs-browser@2.2.1
├─ node-releases@1.1.53
├─ node-sass@4.14.0
├─ nopt@1.0.10
├─ normalize-package-data@2.5.0
├─ normalize-range@0.1.2
├─ normalize-url@3.3.0
├─ npm-run-path@2.0.2
├─ npmlog@4.1.2
├─ nth-check@1.0.2
├─ num2fraction@1.2.2
├─ number-is-nan@1.0.1
├─ oauth-sign@0.9.0
├─ object-copy@0.1.0
├─ object-inspect@1.7.0
├─ object-is@1.1.2
├─ object-keys@1.1.1
├─ object-path@0.11.4
├─ object.assign@4.1.0
├─ object.entries@1.1.1
├─ object.getownpropertydescriptors@2.1.0
├─ object.values@1.1.1
├─ obuf@1.1.2
├─ on-headers@1.0.2
├─ opn@5.5.0
├─ optimize-css-assets-webpack-plugin@5.0.3
├─ original@1.0.2
├─ os-browserify@0.3.0
├─ os-homedir@1.0.2
├─ os-locale@3.1.0
├─ os-tmpdir@1.0.2
├─ osenv@0.1.5
├─ p-defer@1.0.0
├─ p-finally@1.0.0
├─ p-is-promise@2.1.0
├─ p-limit@2.3.0
├─ p-locate@3.0.0
├─ p-map@2.1.0
├─ p-retry@3.0.1
├─ p-try@2.2.0
├─ pako@1.0.11
├─ parallel-transform@1.2.0
├─ parse-json@4.0.0
├─ parse-passwd@1.0.0
├─ pascalcase@0.1.1
├─ path-browserify@0.0.1
├─ path-dirname@1.0.2
├─ path-is-inside@1.0.2
├─ path-key@2.0.1
├─ path-parse@1.0.6
├─ path-to-regexp@0.1.7
├─ path-type@1.1.0
├─ path@0.12.7
├─ performance-now@2.1.0
├─ pinkie@2.0.4
├─ pkg-up@1.0.0
├─ popper.js@1.16.1
├─ portfinder@1.0.26
├─ posix-character-classes@0.1.1
├─ postcss-calc@7.0.2
├─ postcss-colormin@4.0.3
├─ postcss-convert-values@4.0.1
├─ postcss-discard-comments@4.0.2
├─ postcss-discard-duplicates@4.0.2
├─ postcss-discard-empty@4.0.1
├─ postcss-discard-overridden@4.0.1
├─ postcss-load-config@2.1.0
├─ postcss-loader@3.0.0
├─ postcss-merge-longhand@4.0.11
├─ postcss-merge-rules@4.0.3
├─ postcss-minify-font-values@4.0.2
├─ postcss-minify-gradients@4.0.2
├─ postcss-minify-params@4.0.2
├─ postcss-minify-selectors@4.0.2
├─ postcss-modules-extract-imports@2.0.0
├─ postcss-modules-local-by-default@2.0.6
├─ postcss-modules-scope@2.2.0
├─ postcss-modules-values@2.0.0
├─ postcss-normalize-charset@4.0.1
├─ postcss-normalize-display-values@4.0.2
├─ postcss-normalize-positions@4.0.2
├─ postcss-normalize-repeat-style@4.0.2
├─ postcss-normalize-string@4.0.2
├─ postcss-normalize-timing-functions@4.0.2
├─ postcss-normalize-unicode@4.0.1
├─ postcss-normalize-url@4.0.1
├─ postcss-normalize-whitespace@4.0.2
├─ postcss-ordered-values@4.1.2
├─ postcss-reduce-initial@4.0.3
├─ postcss-reduce-transforms@4.0.2
├─ postcss-svgo@4.0.2
├─ postcss-unique-selectors@4.0.1
├─ preact-compat@3.18.0
├─ preact-render-to-string@3.8.2
├─ preact-rheostat@2.1.1
├─ preact-transition-group@1.1.1
├─ preact@8.2.7
├─ pretty-error@2.1.1
├─ pretty-format@3.8.0
├─ private@0.1.8
├─ process-nextick-args@2.0.1
├─ process@0.11.10
├─ promise-inflight@1.0.1
├─ promise@7.3.1
├─ prop-types@15.7.2
├─ proxy-addr@2.0.6
├─ prr@1.0.1
├─ pseudomap@1.0.2
├─ psl@1.8.0
├─ public-encrypt@4.0.3
├─ pumpify@1.5.1
├─ punycode@2.1.1
├─ q@1.5.1
├─ querystring-es3@0.2.1
├─ querystring@0.2.0
├─ querystringify@2.1.1
├─ randomfill@1.0.4
├─ raw-body@2.4.0
├─ react-is@16.13.1
├─ read-pkg@1.1.0
├─ readdirp@2.2.1
├─ redent@1.0.0
├─ reduce@1.0.2
├─ regenerate-unicode-properties@8.2.0
├─ regenerator-runtime@0.13.5
├─ regenerator-transform@0.14.4
├─ regex-parser@2.2.10
├─ regexp.prototype.flags@1.3.0
├─ regexpu-core@4.7.0
├─ regjsgen@0.5.1
├─ regjsparser@0.6.4
├─ remove-trailing-separator@1.1.0
├─ renderkid@2.0.3
├─ repeat-element@1.1.3
├─ repeating@2.0.1
├─ request@2.88.2
├─ resolve-cwd@2.0.0
├─ resolve-dir@1.0.1
├─ resolve-url-loader@3.1.1
├─ resolve-url@0.2.1
├─ resolve@1.17.0
├─ ret@0.1.15
├─ retry@0.12.0
├─ rework-visit@1.0.0
├─ rework@1.0.1
├─ rgb-regex@1.0.1
├─ rgba-regex@1.0.0
├─ run-queue@1.0.3
├─ safer-buffer@2.1.2
├─ sass-graph@2.2.4
├─ sass-loader@7.3.1
├─ sax@1.2.4
├─ scss-tokenizer@0.2.3
├─ select-hose@2.0.0
├─ selfsigned@1.10.7
├─ semver@5.7.1
├─ serialize-javascript@2.1.2
├─ serve-index@1.9.1
├─ serve-static@1.14.1
├─ set-value@2.0.1
├─ setimmediate@1.0.5
├─ shallow-clone@3.0.1
├─ shebang-command@1.2.0
├─ shebang-regex@1.0.0
├─ simple-swizzle@0.2.2
├─ snapdragon-node@2.1.1
├─ snapdragon-util@3.0.1
├─ sockjs-client@1.4.0
├─ sockjs@0.3.19
├─ source-list-map@2.0.1
├─ source-map-resolve@0.5.3
├─ source-map-support@0.5.19
├─ source-map-url@0.4.0
├─ spdx-correct@3.1.0
├─ spdx-exceptions@2.3.0
├─ spdy-transport@3.0.0
├─ spdy@4.0.2
├─ split-string@3.1.0
├─ sprintf-js@1.0.3
├─ sshpk@1.16.1
├─ ssri@6.0.1
├─ stable@0.1.8
├─ stackframe@1.1.1
├─ static-extend@0.1.2
├─ stdout-stream@1.4.1
├─ stream-browserify@2.0.2
├─ stream-each@1.2.3
├─ stream-http@2.8.3
├─ string_decoder@1.3.0
├─ string.prototype.trimend@1.0.1
├─ string.prototype.trimleft@2.1.2
├─ string.prototype.trimright@2.1.2
├─ string.prototype.trimstart@1.0.1
├─ strip-bom@2.0.0
├─ strip-eof@1.0.0
├─ strip-indent@1.0.1
├─ style-loader@0.21.0
├─ stylehacks@4.0.3
├─ svgo@1.3.2
├─ tar@2.2.2
├─ terser-webpack-plugin@1.4.3
├─ terser@4.6.13
├─ through@2.3.8
├─ thunky@1.1.0
├─ timers-browserify@2.0.11
├─ timsort@0.3.0
├─ tmp@0.0.33
├─ to-arraybuffer@1.0.1
├─ to-factory@1.0.0
├─ to-fast-properties@2.0.0
├─ to-object-path@0.3.0
├─ to-regex-range@2.1.1
├─ tough-cookie@2.5.0
├─ trim-newlines@1.0.0
├─ true-case-path@1.0.3
├─ trumbowyg@2.21.0
├─ tslib@1.11.1
├─ tty-browserify@0.0.0
├─ tweetnacl@0.14.5
├─ type-is@1.6.18
├─ type@1.2.0
├─ typedarray@0.0.6
├─ ua-parser-js@0.7.21
├─ un-eval@1.2.0
├─ unicode-canonical-property-names-ecmascript@1.0.4
├─ unicode-match-property-ecmascript@1.0.4
├─ unicode-match-property-value-ecmascript@1.2.0
├─ unicode-property-aliases-ecmascript@1.1.0
├─ union-value@1.0.1
├─ unique-filename@1.1.1
├─ unique-slug@2.0.2
├─ universalify@0.1.2
├─ unpipe@1.0.0
├─ unquote@1.1.1
├─ unset-value@1.0.0
├─ upath@1.2.0
├─ uri-js@4.2.2
├─ use@3.1.1
├─ util-deprecate@1.0.2
├─ util.promisify@1.0.1
├─ utils-merge@1.0.1
├─ v8-compile-cache@2.0.3
├─ validate-npm-package-license@3.0.4
├─ vendors@1.0.4
├─ verror@1.10.0
├─ vm-browserify@1.1.2
├─ watchpack@1.6.1
├─ wbuf@1.7.3
├─ webpack-chunk-hash@0.6.0
├─ webpack-cli@3.3.11
├─ webpack-dev-middleware@3.7.2
├─ webpack-dev-server@3.10.3
├─ webpack-manifest-plugin@2.2.0
├─ webpack@4.43.0
├─ websocket-extensions@0.1.3
├─ whatwg-fetch@3.0.0
├─ which@1.3.1
├─ wide-align@1.1.3
├─ worker-farm@1.7.0
├─ ws@6.2.1
├─ xtend@4.0.2
├─ yallist@3.1.1
├─ yargs-parser@12.0.0
└─ yargs@12.0.5
Done in 63.70s.
@mryellow
Copy link

mryellow commented May 7, 2020

Safer way to hasOwnProperty which would have bypassed this issue:

if (Object.prototype.hasOwnProperty.call(dataAttributes, dataAttr) ...

@caseyjhol
Copy link
Member

@mryellow Yes, that is the fix we implemented.

@v2lrf
Copy link

v2lrf commented May 9, 2020

same here.
with jquery 3.4.1 works like a charm, with jquery 3.5.0 got the error
Uncaught TypeError: options.hasOwnProperty is not a function

I fix it in angular changing the jquery version:
"jquery": "^3.4.1" to "jquery": "3.4.1"

Yes this is very strange cause everything was working very well with 3.5 and suddenly i got rhe same error few minutes ago. As you said i downgrade my jquery version to 3.4.1 and i m back to business but that's really strange. Because i haven't update anything. Just suddenly the hasOwnProperty error 💀. If i found the reason i ll put that here

=> my version is => "bootstrap-select": "1.13.16", && "jquery": "^3.4.1",

@sirosfakhri
Copy link

same here.
with jquery 3.4.1 works like a charm, with jquery 3.5.0 got the error
Uncaught TypeError: options.hasOwnProperty is not a function

I fix it in angular changing the jquery version:
"jquery": "^3.4.1" to "jquery": "3.4.1"

Yes this is very strange cause everything was working very well with 3.5 and suddenly i got rhe same error few minutes ago. As you said i downgrade my jquery version to 3.4.1 and i m back to business but that's really strange. Because i haven't update anything. Just suddenly the hasOwnProperty error . If i found the reason i ll put that here

=> my version is => "bootstrap-select": "1.13.16", && "jquery": "^3.4.1",

right now just update to 1.13.17 and you don't get error anymore.
work fine with jQuery 3.5.0 too

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

Successfully merging a pull request may close this issue.

9 participants