我们有一个使用SystemJS的大型Angular 2项目。我们希望将Braintree合并到这个项目中,但是,我收到了SystemJS 404错误。
正如我所读到的,Braintree不再提供带有npm包的umd包。我已经尝试将 index.js 添加到 systemjs.config.js 文件中,但它不起作用。
(SystemJS) XHR error (404 Not Found) loading http://localhost:3000/node_modules/braintree-web/index.js/client
如果我没有添加任何内容,我会收到以下错误:
(SystemJS) XHR error (404 Not Found) loading http://localhost:3000/braintree-web
braintree-web已添加到 package.json 并安装在 node_modules
中"@types/braintree-web": "^3.6.2"
"braintree-web": "^3.22.2"