-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Examples #205
Comments
Hi @nicholsn. Thank you for your interest in my work and kind words. The playground is exactly what it is, an app itself, and not the simplest possible so that it shows the various configuration in options actions. I wanted started building more focused examples but need got too far. Shaperone itself is intended to be used in a larger application and thus will inevitable require some code around it which handles the shape and resource data (RDF graphs in memory) See here for a minimal example which sets up a scene for using Material components for https://studio.webcomponents.dev/edit/O8SwE2klRV1wMB87Rkh2?branch=material%40fbQAKZxI0hRBvfrLnXURugkAAH72&p=website |
Nice, that minimal example looks like a great place to start and is working in the browser, but if I try to clone the project locally the build fails. Am I doing something wrong here?
Full error message:
```
yarn run v1.22.17
$ npx wcd-cli@latest serve O8SwE2klRV1wMB87Rkh2 --open
/Users/nnichols/.npm/_npx/8968d8787245ab4e/node_modules/wcd-cli/cli.js:18
GFS4: `),console.error(e)});Lt[yr]||(cC=global[yr]||[],fC(Lt,cC),Lt.close=function(e){function t(r,n){return e.call(Lt,r,function(i){i||dC(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,Kd,{value:e}),t}(Lt.close),Lt.closeSync=function(e){function t(r){e.apply(Lt,arguments),dC()}return Object.defineProperty(t,Kd,{value:e}),t}(Lt.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){vo(Lt[yr]),require("assert").equal(Lt[yr].length,0)}));var cC;global[yr]||fC(global,Lt[yr]);F3.exports=A3(T1e(Lt));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Lt.__patched&&(F3.exports=A3(Lt),Lt.__patched=!0);function A3(e){O1e(e),e.gracefulify=A3,e.createReadStream=H,e.createWriteStream=te;var t=e.readFile;e.readFile=r;function r(
SyntaxError: Unexpected token '?'
|
Yes, apparently it is a limitation of the webcomponents.dev page itself. It does some magic to get up and running and the only way to run an example as-is is through the browser The best I can can suggest right now is to set a project as you typically would and use this example as guidance for how to use and configure the component |
@tpluscode do you recommend sticking with the playground here or are there other examples where I could get started with a simple app?
Originally posted by @nicholsn in #201 (comment)
The text was updated successfully, but these errors were encountered: