如何在aurelia中使用azure sb
我尝试使用的特定软件包是如何在aurelia中使用azure sb,azure,aurelia,Azure,Aurelia,我尝试使用的特定软件包是azure sb 我不确定Aurelia对我使用这个软件包有什么特殊要求。在fresh Node.js Web应用程序中,我可以使用以下步骤,并且可以很好地使用包: 创建项目 运行npm安装azure sb--save 加 "dependencies": { "azure-sb": "0.10.4" } 到package.json 在server.js中,我可以使用var azure=require('azure-sb')并使用包提供的所有功能 当我在Aurel
azure sb
我不确定Aurelia对我使用这个软件包有什么特殊要求。在fresh Node.js Web应用程序中,我可以使用以下步骤,并且可以很好地使用包:
npm安装azure sb--save
"dependencies": {
"azure-sb": "0.10.4"
}
到package.json
server.js
中,我可以使用var azure=require('azure-sb')
并使用包提供的所有功能李>
当我在Aurelia中尝试类似的东西时,我无法使用该软件包。
作为附加步骤,我将azure sb
添加到aurelia.json
中
C:\Projects\AureliaNotification>au import azure-sb
INFO [Importer] ---------------------------------------------------------
INFO [Importer] *********** Configuring azure-sb ***********
INFO [Importer] [OK] Going to execute the "Amodrotrace Strategy" strategy
INFO [Importer] *********** Finished configuring azure-sb ***********
INFO [Metadata] Adding/removing dependencies to the 'vendor-bundle.js' bundle
INFO [Metadata] The 'azure-sb' dependency has been added.
INFO [Tutorial] *********** Tutorial ***********
INFO [Tutorial] Are you the maintainer of azure-sb and would you like to define
a tutorial that is displayed here?
INFO [Tutorial] In order to do so you can add an "aurelia"."import"."tutorial" s
ection to the package.json of azure-sb. This can be set to an array of strings.
INFO [Tutorial] *********** Importing the module ***********
INFO [Tutorial] The following import statements are possible:
INFO [Tutorial] import 'azure-sb';
INFO [Tutorial] import azure-sb from 'azure-sb';
INFO [Tutorial] import * as azure-sb from 'azure-sb';
INFO [Tutorial] We are looking into ways to detect what is the right one
INFO [Tutorial] *********** End of tutorial ***********
INFO [Importer] ---------------------------------------------------------
问题是它在错误的位置查找azure sb的所有依赖项:
Tracing azure-sb...
------- File not found or not accessible ------
| Location: C:/Projects/AureliaNotification/src/util.js
| Requested by: C:\Projects\AureliaNotification\node_modules\azure-sb\lib\servic
ebus.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/AureliaNotification/src/underscore.js
| Requested by: C:\Projects\AureliaNotification\node_modules\azure-sb\lib\servic
ebus.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/AureliaNotification/src/url.js
| Requested by: C:\Projects\AureliaNotification\node_modules\azure-sb\lib\servic
ebus.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/AureliaNotification/src/azure-common.js
| Requested by: C:\Projects\AureliaNotification\node_modules\azure-sb\lib\servic
ebus.js
| Is this a package? Make sure that it is configured in aurelia.json and that it
is not a Node.js package
-----------------------------------------------
(+更多)
我开始手动将一些依赖项添加到aurelia.json中,但随后我需要添加这些依赖项的依赖项等,其中一些看起来并不实际存在
是否有选项告诉Aurelia如何解决azure sb包中与执行请求的javascript文件位置相关的
requires
调用?这是一个NodeJS包,因此它无法与浏览器中运行的Aurelia一起工作