私にはまったく困惑している問題があります。流星エラー:キャッチされていないエラー:モジュール 'component.jsx'を見つけることができません
私は1週間開発してきたMeteor/Reactアプリケーションを持っています。すべてがデスクトップ上で正常に動作しています。私は今日MacBookをつかんで、Githubからコードを取り出し、それを実行するようになった。
アプリはJavaScriptコンソールでエラーがスローされます。
modules-runtime.js?hash=637cb12…:139
Uncaught Error: Cannot find module '../../ui/components/signin/Signin.jsx'
at Function.require.resolve (modules-runtime.js?hash=637cb12…:139)
at Module.resolve (modules-runtime.js?hash=637cb12…:91)
at Module.Mp.import (printer.js:170)
at meteorInstall.imports.startup.client.routes.jsx (routes.jsx:1)
at fileEvaluate (modules-runtime.js?hash=637cb12…:191)
at Module.require (modules-runtime.js?hash=637cb12…:116)
at Module.Mp.import (printer.js:170)
at meteorInstall.imports.startup.client.index.js (index.js:1)
at fileEvaluate (modules-runtime.js?hash=637cb12…:191)
at Module.require (modules-runtime.js?hash=637cb12…:116)
私は自分のデスクトップ上に新しいフォルダにアプリケーションをクローン化し、私もそこに同じ問題を取得します。私はSignin.jsxモジュールへの参照をすべて削除しましたが、他のモジュールに対してもエラーがスローされます。
私はこれを引き起こしているのか分かりません。アプリはオリジナルの開発ディレクトリでは完全に動作しますが、新しいディレクトリにプルするとJSコンソールでこのエラーが発生します。
私が試してみました:
meteor reset
meteor npm rebuild
meteor npm install
meteor update
それらのどれもが、どんな違いが行われていません。あなたの助けが大いにありがとう!
EDIT
私は問題とは何かを持っていることがあり、次のエラーを取得する新しいディレクトリにmeteor npm install
を実行しますか?
> [email protected] install /Users/s/Desktop/calendar/node_modules/bcrypt
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.2/bcrypt_lib-v1.0.2-node-v46-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v46 ABI) (falling back to source compile with node-gyp)
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
SOLINK_MODULE(target) Release/bcrypt_lib.node
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9
COPY /Users/s/Desktop/calendar/node_modules/bcrypt/lib/binding/bcrypt_lib.node
TOUCH Release/obj.target/action_after_build.stamp
ケーシングが正しいことを確かめていますか? '../../ui/components/signin/Signin.jsx 'あなたのimport/requireステートメントが実際のファイルとして大文字の大文字と小文字を使用することをダブルチェックします。また、そのコンポーネントをインポートしていたコードを投稿することはできますか? – azium
ケーシングは完璧です。アプリケーションは、私が開発している元のディレクトリに完全に100%働いています。新しいディレクトリにクローンするときだけです(これは、問題はnode_modulesフォルダに関係していると思いますギター。 私の編集をチェックしてください! – Sean
npm installを実行する前に、.meteorフォルダ内のローカルフォルダを削除してください。 –