您好尝试以下列方式集成aframe:
npm install aframe --save
设置angular-cli.json
"scripts": ["../node_modules/aframe/dist/aframe-master.js"]
从https://github.com/devpaul/aframe-typings/blob/master/src/AFRAME.d.ts
设置tsconfig.json
"files":["typings/AFRAME.d.ts"]
我收到以下错误: 找不到命名空间'THREE'
答案 0 :(得分:1)
src/polyfills.ts
import 'aframe';
import 'zone.js/dist/zone'
之前<path stroke-width="2" d="........" />
可以{{1}}