question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'imports' of undefined Nuxtjs/SSR

See original GitHub issue

Getting the following error when i am adding the module to Quill.

Uncaught TypeError: Cannot read property 'imports' of undefined
    at Object.<anonymous> (app.508b1bdd306748193b03.js:9923)
    at e (app.508b1bdd306748193b03.js:9923)
    at Object.<anonymous> (app.508b1bdd306748193b03.js:9923)
    at e (app.508b1bdd306748193b03.js:9923)
    at app.508b1bdd306748193b03.js:9923
    at app.508b1bdd306748193b03.js:9923
    at webpackJsonp../node_modules/quill-image-resize-module/image-resize.min.js (app.508b1bdd306748193b03.js:9923)
    at Object../node_modules/quill-image-resize-module/image-resize.min.js (app.508b1bdd306748193b03.js:9923)
    at __webpack_require__ (manifest.2ea815068b6b951c57aa.js:713)
    at fn (manifest.2ea815068b6b951c57aa.js:118)
~/plugins/nuxt-quill-plugin.js

import Vue from 'vue'
import Quill from 'quill'
import { ImageResize } from 'quill-image-resize-module'

if (process.browser) {
  const VueQuillEditor = require('vue-quill-editor/ssr')
  Quill.register('modules/imageResize', ImageResize)
  Vue.use(VueQuillEditor)
}

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:7
  • Comments:21

github_iconTop GitHub Comments

6reactions
momoirocloverzcommented, Jan 4, 2018

@Temmermans

plugins: [ new webpack.ProvidePlugin({ ‘window.Quill’: ‘quill’ }) ]

https://github.com/kensnyder/quill-image-resize-module/issues/7

5reactions
iampawan31commented, Jan 3, 2018

@Mrjianghan After i remove the brace, i get the following error in Browser Console.

TypeError: window.Quill is undefined
[Learn More]
image-resize.min.js:1
You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html
vue.runtime.esm.js:7911
[HMR] connected
client.js:87

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'imports' of undefined Nuxtjs/SSR -
Getting the following error when i am adding the module to Quill. Uncaught TypeError: Cannot read property 'imports' of undefined at Object.
Read more >
Cannot read property 'imports' of undefined (react-quill ...
Since I'm using react and thus do not have a tsconfig file, I'm unable to follow solutions available on the internet. My code:...
Read more >
TypeError: Cannot read property 'imports' of undefined
I was able to compile your code and migrate. Can you share the command that you were running? Truffle Compile. $ npx truffle...
Read more >
[Solved]-NuxtJS Auth redirects before second API call-nuxt.js
auth.strategy.token.set(response.data.token) } let getUser = await ... Cannot read properties of undefined (reading 'weather') in nuxtjs api call · Call API ...
Read more >
Importing a pipeline : Cannot read property 'length' of undefined
If I export then import it, it crashes with the error : "Cannot read property 'length' of undefined". Here is the generated json...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found