GithubHelp home page GithubHelp logo

2024-06-10-n3-issue-mwe's Introduction

n3-mwe

This is a basic Vue 3 project with Vite using the n3 parser and store. (#386)

Created with

yarn create vue@latest

added the dependencies according to the package.json, i.e.:

  • n3
  • streamify-string
  • vite-plugin-node-polyfills
  • @vue/compiler-dom
  • @vue/server-renderer

The code:

const streamParser = new StreamParser()
let dataString = "<http://example.org/some> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Class> ."
Streamify(dataString).pipe(streamParser)

const n3_store = new Store()
n3_store.import(streamParser).on('end', () => {
  this.dataModel = n3_store
})

executes well as a test, but not in the browser (firefox and chromium). I get the following errors:

Uncaught TypeError: process.nextTick is not a function
    resume readable.js:903
    resume readable.js:895
    on readable.js:821
    import N3Store.js:306
    tryStore App.vue:27
    mounted App.vue:18
    VueJS 8
    <anonymous> main.js:4
readable.js:903:12
Uncaught TypeError: process.nextTick is not a function
    onwrite writable.js:411
    _write transform.js:168
    _transform N3StreamParser.js:29
    _write transform.js:153
    writeOrBuffer writable.js:334
    _write writable.js:283
    write writable.js:286
    ondata _stream_readable.js:629
    emit events.js:153
    read _stream_readable.js:451
    flow _stream_readable.js:858
    resume_ _stream_readable.js:842
    run browser.js:153
    drainQueue browser.js:123
    setTimeout handler*runTimeout browser.js:41
    nextTick browser.js:143
    resume _stream_readable.js:832
    resume _stream_readable.js:824
    on _stream_readable.js:753
    pipe _stream_readable.js:626
    tryStore App.vue:24
    mounted App.vue:18
    VueJS 8
    <anonymous> main.js:4
writable.js:411:16

2024-06-10-n3-issue-mwe's People

Contributors

white-gecko avatar

Watchers

 avatar

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.