json-ld / json-ld.org

JSON for Linked Data's documentation and playground site
https://json-ld.org/
Other
859 stars 152 forks source link

Problem with 1.0.2 version during webpack compilation rdf-canonize error arose. #683

Closed ArekMiszcz closed 5 years ago

ArekMiszcz commented 5 years ago

There is a problem with json-ld rdf-canonize dependence. This package contain es6 syntax which fails my application.

davidlehn commented 5 years ago

Please move this to https://github.com/digitalbazaar/jsonld.js/issues. Quick answer is both jsonld.js and rdf-canonize are using ES6+ syntax. You'll need to setup webpack to use the pre-built dist/ files or use babel or similar to transpile the code for your target environment. I'm not sure if there are babel hints we could add to make this more automatic.

ArekMiszcz commented 5 years ago

Ok, Thanks a lot for this answer.