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

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

Open
userBy9527 opened this issue May 14, 2024 · 1 comment
Labels

Comments

@userBy9527
Copy link

<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

@userBy9527 userBy9527 added the Bug label May 14, 2024
@ranxin001
Copy link

Just tried,It should be caused by not getting DOM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants