我的测试应用程序编译正常,除了我收到此警告:
“关键依赖:依赖的请求是一个表达式”
(base) marco<strong i="7">@pc01</strong>:~/webMatters/vueMatters/PeerJS-VueJS-Test$ npm run serve
> [email protected] serve /home/marco/webMatters/vueMatters/PeerJS-VueJS-Test
> vue-cli-service serve
INFO Starting development server...
98% after emitting CopyPlugin
WARNING Compiled with 1 warnings
7:22:25 PM
warning in ./node_modules/peerjs/dist/peerjs.min.js
Critical dependency: the request of a dependency is an expression
App running at:
- Local: http://localhost:8080
- Network: http://ggc.world/
Note that the development build is not optimized.
To create a production build, run npm run build.
这是 webpack.config.js :
{
"mode": "development",
"output": {
"path": __dirname+'/static',
"filename": "[name].[chunkhash:8].js"
},
"module": {
"rules": [
{
"test": /\.vue$/,
"exclude": /node_modules/,
"use": "vue-loader"
},
{
"test": /\.pem$/,
"use": "file-loader"
}
]
},
node: {
__dirname: false,
__filename: false
},
resolve: {
extension: ['*', '.pem'],
},
devServer: {
watchOptions: {
aggregateTimeout: 300,
poll: 1000
},
https: true,
compress: true,
public: 'ggc.world:8080'
}
}
关于如何解决它的任何想法?
将 create-react-app 与 peerjs 一起使用时,我也遇到了这个问题。
我对 peerjs v0.3.18 和最新版本也有这个问题。
“反应”:“^ 16.13.1”
“反应脚本”:“3.4.1”
我在使用时也遇到了这个问题:
{
"peerjs": "^1.3.1",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.12"
}
我在使用时也遇到了这个问题:
{ "peerjs": "^1.3.1", "webpack": "^4.43.0", "webpack-cli": "^3.3.12" }
我可能错了,但我认为建议全局安装 webpack-cli,而不是作为项目的一部分
@jextrevor
我可能错了,但我认为建议全局安装 webpack-cli,而不是作为项目的一部分
谢谢!
将 create-react-app 与 peerjs 一起使用时,我也遇到了这个问题。
我在 create-react-app 中收到同样的警告 .. 有任何更新吗?
出于某种原因,我将peer.call(userId, selfStream);
设为未定义。
请帮助我 - 应用程序在这里。 创建一个房间并尝试通过在地址栏中复制粘贴会议 url 来加入某人。 然后你会在控制台看到错误
仍然在这里解决这个问题。
我也有这个问题:沉思:
最有用的评论
将 create-react-app 与 peerjs 一起使用时,我也遇到了这个问题。