Git Product home page Git Product logo

nuxt-editorjs's People

Contributors

wantpinow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

tymon42

nuxt-editorjs's Issues

ReferenceError: window is not defined

Does not work with nuxt 3,
Throws -

    at Object.<anonymous> (/Volumes/HAMILTON/projects/gidus/gidus-admin/node_modules/@editorjs/editorjs/dist/editor.js:2:198)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at ModuleWrap.<anonymous> (internal/modules/esm/translators.js:199:29)
    at ModuleJob.run (internal/modules/esm/module_job.js:183:25)
    at async Loader.import (internal/modules/esm/loader.js:178:24)
    at async __instantiateModule__ (file:///Volumes/HAMILTON/projects/gidus/gidus-admin/.nuxt/dist/server/server.mjs:81339:3)```

Does not provide an export named 'default'

Followed the docs, but get this error:

The requested module '/_nuxt/node_modules/@editorjs/header/dist/bundle.js?v=ecdc2e53' does not provide an export named 'default'

Client re-renders when v-model is rendered as sibling element

To reproduce:

<template>
  <div>
    <editor-js v-model="dat" />
    <pre>
      {{ dat }}
    </pre>
  </div>
</template>
<script setup>
const data = ref();
</script>

The <editor-js /> component seems to reload every time it recieves an input, making it unusable. This can be fixed by wrapping the component in the <client-only> tag but this shouldn't be neccessary given that the <editor-js /> component is already a client-only element (by the filename EditorJs.client.vue).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.