【问题标题】:How to integrate aframe to my project ANGULAR-CLI?如何将 aframe 集成到我的项目 ANGULAR-CLI?
【发布时间】:2017-09-27 17:39:46
【问题描述】:

您好,尝试通过以下方式集成 aframe:

  1. npm install aframe --save

  2. 设置angular-cli.json

    "scripts": ["../node_modules/aframe/dist/aframe-master.js"]
    
  3. https://github.com/devpaul/aframe-typings/blob/master/src/AFRAME.d.ts下载分型

  4. 设置tsconfig.json

    "files":["typings/AFRAME.d.ts"]
    

我收到以下错误: 找不到命名空间“三”

【问题讨论】:

    标签: angular angular-cli aframe


    【解决方案1】:

    src/polyfills.ts 你可以在import 'aframe'; 之前import 'zone.js/dist/zone'

    【讨论】:

      猜你喜欢
      • 2020-04-16
      • 2020-01-26
      • 1970-01-01
      • 2017-11-15
      • 2021-11-06
      • 2017-12-23
      • 2018-02-22
      • 2019-10-08
      • 2017-10-21
      相关资源
      最近更新 更多