Я пытаюсь настроить aurelia.json в приложении для машинописи aurelia для включения пакета googleapis npm, который загружается загрузчиком, но при сборке / связывании с aurelia-cli всегда возникают ошибки.
вот так я добавил его в aurelia.json
{
"name": "googleapis",
"main": "build/src/index",
"path": "../node_modules/googleapis",
"resources": []
},
{
"name": "googleapis-common",
"main": "build/src/index",
"path": "../node_modules/googleapis-common",
"resources": []
},
{
"name": "google-auth-library",
"main": "build/src/index",
"path": "../node_modules/google-auth-library",
"resources": []
}
я получаю ошибки
------- File not found or not accessible ------
| Location: c:/projects/xyz/src/google-auth-library.js
| Requested by: c:/projects/xyz/src/resources/elements/html-elements/google-auth-button.js
| Is this a package? Make sure that it is configured in aurelia.json and that it is not a Node.js package
-----------------------------------------------
------- File not found or not accessible ------
| Location: c:/projects/xyz/src/googleapis-common.js
| Requested by: c:/projects/xyz/src/resources/elements/html-elements/google-auth-button.js
| Is this a package? Make sure that it is configured in aurelia.json and that it is not a Node.js package
-----------------------------------------------
------- File not found or not accessible ------
| Location: c:/projects/xyz/node_modules/googleapis/build/src/apis.js
| Requested by: c:/projects/xyz/src/resources/elements/html-elements/google-auth-button.js
| Is this a package? Make sure that it is configured in aurelia.json and that it is not a Node.js package
-----------------------------------------------
------- File not found or not accessible ------
| Location: c:/projects/xyz/src/google-auth-library.js
| Requested by: c:/projects/xyz/src/resources/elements/html-elements/google-auth-button.js
| Is this a package? Make sure that it is configured in aurelia.json and that it is not a Node.js package
-----------------------------------------------
------- File not found or not accessible ------
| Location: c:/projects/xyz/src/googleapis-common.js
| Requested by: c:/projects/xyz/src/resources/elements/html-elements/google-auth-button.js
| Is this a package? Make sure that it is configured in aurelia.json and that it is not a Node.js package
-----------------------------------------------
------- File not found or not accessible ------
| Location: c:/projects/xyz/node_modules/googleapis/build/src/apis.js
| Requested by: c:/projects/xyz/src/resources/elements/html-elements/google-auth-button.js
| Is this a package? Make sure that it is configured in aurelia.json and that it is not a Node.js package
что мне нужно сделать, чтобы это работало?Как правильно использовать эти библиотеки с aurelia?