当我运行我的应用程序时,控制台上存在这样的错误:
未定义的ReferenceError:未定义Pusher
和
未定义的ReferenceError: App未定义
然而,我在命令行上运行了以下命令:
npm install 和
npm install --save-dev pusher-js当我加上这个:
import Pusher from 'pusher-js'在bootstrap.js上,它可以工作
我有两台笔记本电脑
我的第一台笔记本电脑,它没有添加import Pusher from 'pusher-js',它能工作
是否需要安装一些东西?
为什么我的第二台笔记本需要添加import Pusher from 'pusher-js'
发布于 2017-10-10 17:16:11
https://stackoverflow.com/questions/44409777
复制相似问题