Initialization error [Vue warn]: Error in v-on handler: "TypeError: Cannot read properties of null (reading 'nodeType')" · Issue #918 · nhn/tui.image-editor · GitHub
Skip to content
This repository was archived by the owner on Sep 2, 2026. It is now read-only.
This repository was archived by the owner on Sep 2, 2026. It is now read-only.

Initialization error [Vue warn]: Error in v-on handler: "TypeError: Cannot read properties of null (reading 'nodeType')" #918

Open

Description

@userBy9527
<script> import "tui-image-editor/dist/tui-image-editor.css"; import "tui-color-picker/dist/tui-color-picker.css"; const ImageEditor = require("tui-image-editor"); export default { data() { return { dialogVisible: false, instance: null, }; }, mounted() { // }, methods: { handleClose() { this.dialogVisible = false; }, opendialog() { this.dialogVisible = true; var locale_ru_RU = { // override default English locale to your custom Crop: 'Обзрезать', // as result default English inscription will be translated into Russian 'Delete-all': 'Удалить всё', // etc... }; // Image editor const instance = new ImageEditor(document.querySelector('#tui-image-editor'), { includeUI: { loadImage: { path: 'img/sampleImage.jpg', name: 'SampleImage', }, locale: locale_ru_RU, // key-value object with localization // theme: blackTheme, // or whiteTheme initMenu: 'filter', menuBarPosition: 'bottom', }, cssMaxWidth: 700, cssMaxHeight: 500, selectionStyle: { cornerSize: 20, rotatingPointOffset: 70, }, }); } }, }; </script>

The code is as above,How to solve it

Activity

  1. ranxin001 commented on Sep 19, 2024

    @ranxin001

    Just tried,It should be caused by not getting DOM

  2. dodu2014 commented on Apr 7, 2025

    @dodu2014

    How can we solve it

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions