私はReactでジャンプを開始しようとしていますFacebookのによって作成され、ここで説明:create-react-appツールはcreate-react-appツールの単純さのように、create-react-appは '依存関係のリクエストは式です'をexpress/lib/view.jsで返します
https://facebook.github.io/react/blog/2016/07/22/create-apps-with-no-configuration.html
誰もがここで間違っているものを私に伝えることができますか?
私はFeatherJSとそれを組み合わせるとpackage.jsonにこの依存関係を追加しようとしている:
App.jsへ"feathers": "^2.0.0"
と、この:
import feathers from 'feathers';
今、私のWebアプリがロードされませんそして私は、コンソールにこのエラーが表示されます。
Compiled with warnings.
Warning in ./src/App.js
/Users/nikolaschou/Dev/newbanking/payment-window/src/App.js
4:8 warning 'feathers' is defined but never used no-unused-vars
✖ 1 problem (0 errors, 1 warning)
Warning in ./~/express/lib/view.js
Critical dependencies:
78:29-56 the request of a dependency is an expression
@ ./~/express/lib/view.js 78:29-56
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
もちろん、良い答えです。フェザーはクライアント側とサーバー側の両方にありますが、この場合はフェザークライアントをインポートする必要があります。明らかにサーバサイドであるエクスプレスライブラリにエラーがあるので、私はこれを自分で見たはずです。 –
Reactチュートリアルを更新し、次のリリースで新しいcreate-react-appツールを使用します。また、クライアント側のモジュールローダーの使用方法については、https://docs.feathersjs.com/clients/feathers.html#usage-in-nodejs-and-client-module-loaders – Daff