Closed scenaristeur closed 4 years ago
You probably want to copy the node webpack directives from https://github.com/shexSpec/shex.js/blob/master/webpack.config.js#L27
Hi, i've give up with solid-sdk-form, i'm building mine, with your browserified version but I have another question : Loading remote shex is ok with
window.shexLoader.load([f], [], [], []).then(loaded =...
but i also want to read & parse the schema of an uploaded file.
with an <input type="file">
but how do i get the schema? with
const reader = new FileReader()
reader.onload = this.handleFileLoad;
reader.readAsText(f)
you want something like
const shexc = require('fs').readFileSync('test/cli/1dotOr2dotCLOSED.shex', 'utf8')
const parser = require('@shexjs/parser').construct('http://example.com/base/url/')
console.warn(parser.parse(shexc), null, 2)
Windows 10, node v12.18.1 The second part of my issue seems to come from shexjs ? https://github.com/inrupt/solid-sdk-forms/issues/130#issue-661983839
I tried to install @shexjs/core & @shexjs/parser manually as dep of my project, but now, when i run 'npm run dev' with a webpack conf, i got