Peerjs: ./node_modules/peerjs/dist/peerjs.min.jsの警告重大な依存関係:依存関係のリクエストは式です

作成日 2020年03月02日  ·  9コメント  ·  ソース: peers/peerjs

私のテストアプリは、次の警告が表示されることを除いて、正常にコンパイルされています。
「重要な依存関係:依存関係の要求は式です」

(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'
    }
}

それを解決する方法について何かアイデアはありますか?

最も参考になるコメント

peerjsでcreate-react-appを使用しているときにもこの問題が発生します。

全てのコメント9件

peerjsでcreate-react-appを使用しているときにもこの問題が発生します。

この問題は、peerjsv0.3.18と最新バージョンの両方で発生しています。

"react": "^ 16.13.1"
"react-scripts": "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をグローバルにインストールすることをお勧めします

ありがとうございました!

peerjsでcreate-react-appを使用しているときにもこの問題が発生します。

create-react-appで同じ警告が表示されます..更新はありますか?

何らかの理由で、 peer.call(userId, selfStream);が未定義として表示されます。
私を助けてください-アプリケーションはここにあり

まだここでこの問題が発生しています。

私もこの問題を抱えています:pensive:

このページは役に立ちましたか?
0 / 5 - 0 評価