Giter VIP home page Giter VIP logo

Comments (7)

l00mi avatar l00mi commented on September 25, 2024

With the help of https://www.npmjs.com/package/browserify you can bundle the require include in one js file.

index.js

global.rdf-parser-jsonld = require("rdf-parser-jsonlod")

Then just browserify index.js > bundle.js, include bundle.js in your html and voilà you got rdf-parser-jsonld as a global.

from rdf-parser-jsonld.

nicky508 avatar nicky508 commented on September 25, 2024

Used browserify and followed your steps:

SyntaxError: Assigning to rvalue (2:0) while parsing

from rdf-parser-jsonld.

l00mi avatar l00mi commented on September 25, 2024

Okay, can you a tiny bit more specific where this happens?

from rdf-parser-jsonld.

nicky508 avatar nicky508 commented on September 25, 2024

On: browserify index.js bundle.js

index.js

global.rdf-parser-jsonld = require("rdf-parser-jsonld")

SyntaxError: Assigning to rvalue (2:0) while parsing C:\xampp\htdocs\nfirs_report\js\index.js while parsing file: C:\xampp\htdocs\nfirs_report\js\index.js
    at DestroyableTransform.end [as _flush] (C:\Users\Nicky\AppData\Roaming\npm\node_modules\browserify\node_modules\insert-module-globals\index.js:96:21)
    at DestroyableTransform.<anonymous> (C:\Users\Nicky\AppData\Roaming\npm\node_modules\browserify\node_modules\readable-stream\lib\_stream_transform.js:138:49)
    at DestroyableTransform.g (events.js:292:16)
    at emitNone (events.js:86:13)
    at DestroyableTransform.emit (events.js:185:7)
    at prefinish (C:\Users\Nicky\AppData\Roaming\npm\node_modules\browserify\node_modules\readable-stream\lib\_stream_writable.js:596:14)
    at finishMaybe (C:\Users\Nicky\AppData\Roaming\npm\node_modules\browserify\node_modules\readable-stream\lib\_stream_writable.js:604:5)
    at endWritable (C:\Users\Nicky\AppData\Roaming\npm\node_modules\browserify\node_modules\readable-stream\lib\_stream_writable.js:615:3)
    at DestroyableTransform.Writable.end (C:\Users\Nicky\AppData\Roaming\npm\node_modules\browserify\node_modules\readable-stream\lib\_stream_writable.js:571:41)
    at DestroyableTransform.onend (C:\Users\Nicky\AppData\Roaming\npm\node_modules\browserify\node_modules\readable-stream\lib\_stream_readable.js:570:10)

from rdf-parser-jsonld.

l00mi avatar l00mi commented on September 25, 2024

its browserify index.js > bundle.js

two things, please try to understand what browserify does, and probably you might do yourself a favor switching to a posix OS for such development. (might be just a linux in a VM)

from rdf-parser-jsonld.

nicky508 avatar nicky508 commented on September 25, 2024

Makes no difference between: browserify index.js bundle.js and browserify index.js > bundle.js. Will try it on a linux machine.

from rdf-parser-jsonld.

l00mi avatar l00mi commented on September 25, 2024

Ah, and also have a look at http://rdf-ext.zazuko.com/ might be the easier solution here.
(Sorry that I did not think about this earlier.)

from rdf-parser-jsonld.

Related Issues (6)

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.