olioapps / aframe-typescript-toolkit Goto Github PK
View Code? Open in Web Editor NEWConvenience utilities and base classes that can be used to build aframe components using typescript.
License: MIT License
Convenience utilities and base classes that can be used to build aframe components using typescript.
License: MIT License
create a system project.
place an image in the assets folder
npm start
go to localhost:3000/assets/imagename.jpg in the browser
expected behavior:
image is displayed in the browser.
result:
404 error.
create a default system with aframe-typescript-toolkit
npm run start
open console
index.ts:21 Uncaught (in promise) TypeError: this.system.add is not a function
at i.SphereRegistryComponent.init (VM1783 index.js:10035)
at i.updateProperties (component.js:270)
at HTMLElement.value (a-entity.js:501)
at HTMLElement.value (a-entity.js:474)
at a-entity.js:267
at a-node.js:129
upon inspection
this.system is undefined so of course this.system.add is not a function.
This behavior is strange doesn't aframe automatically add systems to components of the same name?
default system template will attempt to register the same system twice causing an error
Uncaught Error: The system
sphere-registry
has been already registered. Check that you are not loading two versions of the same system or two different systems of the same name.
To recreate this issue.
aframe-typescript-toolkit
select system
cd to created system directory.
npm install
npm ERR! notarget No matching version found for [email protected]
editing the package.json to use version 0.0.16 fixes this error however I feel like this is undesirable behavior. Either 17 hasn't been uploaded or 17 wasn't supposed to be generated.
Invoking the toolkit triggers a prompt asking to create a component or a system as expected. Arrow keys do not change the selected template from component to system.
The getter / setter of the class that extended ComponentWrapper is undefined.
I don't need a getter / setter since I use member variables instead,
Someone may have problems using getters / setters.
create a fresh system then npm install
npm run build
then this error should appear
ERROR in [at-loader] ./node_modules/@types/aframe/index.d.ts:254:17
TS2694: Namespace '"path/to/project/test/test/node_modules/three/src/Three"' has no exported member 'VREffect'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.