Comments (7)
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.
Used browserify and followed your steps:
SyntaxError: Assigning to rvalue (2:0) while parsing
from rdf-parser-jsonld.
Okay, can you a tiny bit more specific where this happens?
from rdf-parser-jsonld.
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.
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rdf-parser-jsonld.