Uncaught TypeError: Cannot read property 'Attributor' of undefined Quill parchment - quill

I using quill parchement with laravel but i am getting cannot read property 'attributor'
my code:
let Align = new Parchment.Attributor.Class('align', 'blot-align');
Parchment.register(Align)
let node = document.createElement('div');
Align.add(node, 'right');
ref ink https://github.com/quilljs/parchment#class-attributor
error that i face:
Uncaught TypeError: Cannot read property 'Attributor' of undefined
detailed Error
Uncaught TypeError: Cannot read property 'Attributor' of undefined
at Module../resources/js/core/editor/wygsiwyg.js (app.js:234074)
at __webpack_require__ (app.js:20)
at Module../node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/index.vue?vue&type=script&lang=js& (app.js:34862)
at __webpack_require__ (app.js:20)
at Module../resources/js/index.vue?vue&type=script&lang=js& (app.js:235398)
at __webpack_require__ (app.js:20)
at Module../resources/js/index.vue (app.js:235360)
at __webpack_require__ (app.js:20)
at Module../resources/js/app.js (app.js:228035)
at __webpack_require__ (app.js:20)
i also tried webpack :
mix.js('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css')
.version();
mix.webpackConfig({
resolve: {
alias: {
'#': path.resolve(__dirname, '../node_modules/parchment/src/parchment.js')
}
},
node: { fs: 'empty' }})

Related

"react-multi-select-component.cjs.development.js" causing trouble after node module install

Uncaught TypeError: goober.css is not a function
at Object. (react-multi-select-component.cjs.development.js:204)
at webpack_require (bootstrap 2742a634f315fce6398f:555)
at fn (bootstrap 2742a634f315fce6398f:86)
at Object. (index.js:7)
at webpack_require (bootstrap 2742a634f315fce6398f:555)
at fn (bootstrap 2742a634f315fce6398f:86)

Node throws "TypeError: Cannot read property '1' of null" error

The error
I just started my react dev server and now node throws an
TypeError: Cannot read property '1' of null
error. I checked my npm version, its v14.17.1.
Does someone have an idea what could cause the problem? The exact same setup ran yesterday without a single problem.
Full Stacktrace:
Uncaught TypeError: Cannot read property '1' of null
at Object.<anonymous> (node-version.js:5)
at Object../node_modules/default-resolution/node-version.js (node-version.js:10)
at __webpack_require__ (bootstrap:851)
at fn (bootstrap:150)
at Object../node_modules/default-resolution/index.js (index.js:3)
at __webpack_require__ (bootstrap:851)
at fn (bootstrap:150)
at Object../node_modules/last-run/index.js (index.js:7)
at __webpack_require__ (bootstrap:851)
at fn (bootstrap:150)
at Object.<anonymous> (createExtensions.js:3)
at Object../node_modules/undertaker/lib/helpers/createExtensions.js (createExtensions.js:73)
at __webpack_require__ (bootstrap:851)
at fn (bootstrap:150)
at Object../node_modules/undertaker/lib/series.js (series.js:8)
at __webpack_require__ (bootstrap:851)
at fn (bootstrap:150)
at Object../node_modules/undertaker/index.js (index.js:10)
at __webpack_require__ (bootstrap:851)
at fn (bootstrap:150)
at Object../node_modules/gulp/index.js (index.js:4)
at __webpack_require__ (bootstrap:851)
at fn (bootstrap:150)
at Module.<anonymous> (Index.js:182)
at Module../src/views/User.js (User.js:253)
at __webpack_require__ (bootstrap:851)
at fn (bootstrap:150)
at Module.<anonymous> (Auth.js:111)
at Module../src/routes.js (routes.js:94)
at __webpack_require__ (bootstrap:851)
at fn (bootstrap:150)
at Module.<anonymous> (index.js:30)
at Module../src/layouts/Admin.js (Admin.js:96)
at __webpack_require__ (bootstrap:851)
at fn (bootstrap:150)
at Module.<anonymous> (API.js:16)
at Module../src/components/App.js (App.js:36)
at __webpack_require__ (bootstrap:851)
at fn (bootstrap:150)
at Module.<anonymous> (Sidebar.js:278)
at Module../src/index.js (index.js:30)
at __webpack_require__ (bootstrap:851)
at fn (bootstrap:150)
at Object.1 (Tables.js:1797)
at __webpack_require__ (bootstrap:851)
at checkDeferredModules (bootstrap:45)
at Array.webpackJsonpCallback [as push] (bootstrap:32)
at main.chunk.js:1

_react.default.createContext is not a function when using #material-ui/core

Im getting the following error when trying to import components from #material-ui/core:
FormControlContext.js?f516:15 Uncaught TypeError: _react.default.createContext is not a function
at eval (FormControlContext.js?f516:15)
at Object../node_modules/#material-ui/core/FormControl/FormControlContext.js (main-e0a237440313c16428eb.js:6062)
at __webpack_require__ (main-e0a237440313c16428eb.js:725)
at fn (main-e0a237440313c16428eb.js:102)
at eval (InputBase.js?f12e:38)
at Object../node_modules/#material-ui/core/InputBase/InputBase.js (main-e0a237440313c16428eb.js:6230)
at __webpack_require__ (main-e0a237440313c16428eb.js:725)
at fn (main-e0a237440313c16428eb.js:102)
at eval (index.js?26dc:15)
at Object../node_modules/#material-ui/core/InputBase/index.js
Ive already tried (suggested: here):
npm update react react-dom
Any ideas how this can be resolved?

ReactJS and Redux: unable to render user search data to UI

I am unable to render the data to UI that I got from getGitUser function (action.js file). When I debugged my function getGitUsers() (in reducer-user.js) it shows something as
ReferenceError: action is not defined at eval (eval at (eval at (http://localhost:3000/js/bundle.min.js:2113:2)), :1:1) at eval (eval at (http://localhost:3000/js/bundle.min.js:2113:2), :8:21) at Object. (http://localhost:3000/js/bundle.min.js:2113:2) at __webpack_require__ (http://localhost:3000/js/bundle.min.js:20:30) at eval (eval at (http://localhost:3000/js/bundle.min.js:2125:2), :19:15) at Object. (http://localhost:3000/js/bundle.min.js:2125:2) at __webpack_require__ (http://localhost:3000/js/bundle.min.js:20:30) at eval (eval at (http://localhost:3000/js/bundle.min.js:2119:2), :11:17) at Object. (http://localhost:3000/js/bundle.min.js:2119:2) at __webpack_require__ (http://localhost:3000/js/bundle.min.js:20:30)
message
:
"action is not defined"
stack
:
"ReferenceError: action is not def

react 16 upgrade error issue

I am trying to migrate my app from React 15.6 to React 16.2, and also replace react-router-dom from react-router, but still have some error I don't understand. please help me check it.
index.js:12 Uncaught TypeError: Cannot read property 'initialize' of undefined
at Object.<anonymous> (index.js:12)
at __webpack_require__ (bootstrap 7e469d7f5710750b80d0:555)
at fn (bootstrap 7e469d7f5710750b80d0:86)
at Object.<anonymous> (bootstrap 7e469d7f5710750b80d0:578)
at __webpack_require__ (bootstrap 7e469d7f5710750b80d0:555)
at bootstrap 7e469d7f5710750b80d0:578
at bootstrap 7e469d7f5710750b80d0:578

Resources