1
我有库(Tus.io)这就是编译为UMD。我需要它在我的Angular2/4项目中。当我与故宫安装它(NPM安装土族-JS-客户)和导入(VAR土族=要求( “土族-JS-客户端”);)我得到的错误是:使用角度2/4的UMD库
Failed to compile.
/home/***/src/app/manageVideos/Partials/add.component.ts (8,17):
Module '../../../../node_modules/tus-js-client/dist/tus.js'
was resolved to '/home/***/node_modules/tus-js-client/dist/tus.js',
but '--allowJs' is not set.
/home/***/src/app/manageVideos/Partials/add.component.ts (9,11): Cannot find name 'require'.