Atmosphere / atmosphere-javascript

atmosphere-javascript
Apache License 2.0
122 stars 98 forks source link

"ReferenceError: atmosphere is not defined" #281

Open kobewilliam opened 2 years ago

kobewilliam commented 2 years ago

Hey! I used ''npm install atmosphere.js'' to install atmosphere to my VUE-CLI project. Npm showed that I succeeded in installing it, however, when I opened the browser, the console has an error like this:

[Vue warn]: Error in created hook: "ReferenceError: atmosphere is not defined" found in ---> at src/App.vue

warn @ vue.esm.js?efeb:628 vue.esm.js?efeb:1906 ReferenceError: atmosphere is not defined at VueComponent.initWebSocket (App.vue?26cd:27:1) at VueComponent.created (App.vue?26cd:20:1) at invokeWithErrorHandling (vue.esm.js?efeb:1872:1) at callHook (vue.esm.js?efeb:4244:1) at VueComponent.Vue._init (vue.esm.js?efeb:5031:1) at new VueComponent (vue.esm.js?efeb:5177:1) at createComponentInstanceForVnode (vue.esm.js?efeb:3313:1) at init (vue.esm.js?efeb:3142:1) at createComponent (vue.esm.js?efeb:6033:1) at createElm (vue.esm.js?efeb:5980:1) I checked the package.json and found the atmosphere is here. May I ask for your help in solving this problem? Thanks! Screen Shot 2022-04-07 at 8 53 31 PM
jfarcand commented 2 years ago

@kobewilliam Can you share a test case? I need more context. Thanks