Javascript ConverseJs在角度js路线中给出错误;错误:请参阅almond自述:模块构建不正确,没有模块名称定义;
我正在尝试使用ConverseJS和angular js。当页面路由到下一页时,我遇到了路由问题,然后我发现了这个错误 错误:请参阅almond自述:模块构建不正确,没有模块名称 定义 我正在做:-Javascript ConverseJs在角度js路线中给出错误;错误:请参阅almond自述:模块构建不正确,没有模块名称定义;,javascript,angularjs,Javascript,Angularjs,我正在尝试使用ConverseJS和angular js。当页面路由到下一页时,我遇到了路由问题,然后我发现了这个错误 错误:请参阅almond自述:模块构建不正确,没有模块名称 定义 我正在做:- <script type="text/javascript" src="js/converse.min.js"></script> require(['converse'], function (converse){ converse.initialize({
<script type="text/javascript" src="js/converse.min.js"></script>
require(['converse'], function (converse){
converse.initialize({
allow_chat_pending_contacts:true,
allow_contact_requests:true,
allow_dragresize:false,
allow_muc:false,
allow_otr: false,
allow_registration:false,
auto_list_rooms: false,
auto_subscribe: true,
auto_join_on_invite:true,
bosh_service_url: 'http://45.55.177.22:5280/http-bind/', // Please use this connection manager only for testing purposes
debug: false ,
auto_login:true,
jid:'jid',
password:'123',
hide_muc_server: true,
message_archiving: 'always',
i18n: locales['en'], // Refer to ./locale/locales.js to see which locales are supported
prebind: false,
show_controlbox_by_default: false,
xhr_user_search: false,
image_upload_url: '/chat/image.php'
});
});
require(['converse'],函数(converse){
逆向初始化({
允许\u聊天\u挂起\u联系人:true,
允许联系请求:true,
允许拖动大小:false,
允许_muc:false,
允许:错误,
允许注册:false,
自动列出房间:false,
自动订阅:正确,
邀请时自动加入:真,
bosh_服务_url:'http://45.55.177.22:5280/http-bind/',//请仅出于测试目的使用此连接管理器
调试:错误,
自动登录:true,
吉德:“吉德”,
密码:'123',
隐藏多个服务器:true,
信息_存档:“始终”,
i18n:locales['en'],//请参阅./locale/locales.js以查看支持哪些语言环境
预绑定:false,
默认情况下显示控制框:false,
xhr\u用户搜索:false,
图片上传网址:'/chat/image.php'
});
});
我在索引页中使用了此代码,我发现了此错误
错误:请参阅almond自述:模块构建不正确,没有模块名称
定义
我还使用ng查看页面,并在帮助下在索引页面上路由页面。当我复制了这段代码并把它放在另一个通过路由加载的页面上时,它在第一次加载页面时工作正常
页面完全加载后,我点击其他页面链接,然后我发现在路由相同的错误
错误:请参阅almond自述:模块构建不正确,没有模块名称
所以请帮帮我。
定义