2017-02-17 11 views
0

https://github.com/facebookincubator/create-react-appの指示に従ってcreate-react-appパッケージをインストールしました。私が持っているインストール済みのパッケージのリストの後create-react-app:古いバージョンのHandlebarsでテンプレートがプリコンパイルされました

$ create-react-app --version 
1.0.4 

$ create-react-app myapp 

Creating a new React app in /home/...mydir.../myapp. 

Installing packages. This might take a couple minutes. 
Installing react-scripts... 

::私は指示に続き、「myappの」アプリを作成したその後

Success! Created myapp at /home/...mydir.../myapp 
Inside that directory, you can run several commands: 

    npm start 
    Starts the development server. 

    npm run build 
    Bundles the app into static files for production. 

    npm test 
    Starts the test runner. 

    npm run eject 
    Removes this tool and copies build dependencies, configuration files 
    and scripts into the app directory. If you do this, you can’t go back! 

We suggest that you begin by typing: 

    cd myapp 
    npm start 

Happy hacking! 

は、[OK]を、しかし、ときに私サーバーを実行しています。ブラウザのコンソールに次のメッセージがあります。

Template was precompiled with an older version of Handlebars than the current 
runtime. Please update your precompiler to a newer version (>= 4.0.0) or downgrade 
your runtime to an older version (>= 2.0.0-beta.1). 

私はハンドルバーを確認しましたSバージョン:

$ npm ls|grep handlebars 
    │ │ └─┬ [email protected] 

は、私はまた、「devDependencies」と「依存関係」の下package.json上のハンドルバーのバージョンを設定しようとしたが、それは動作しませんでした。

これを解決する方法はありますか?

+0

誰かが調査できるように問題を提出してください。たぶん、いくつかの依存関係が更新され、これが発生しました。 CRA自体はハンドルバーとは関係ありません。 –

+0

実際には心配していません。私はこれを自分で提出しました:https://github.com/facebookincubator/create-react-app/issues/1589 –

+1

今後は、ノードとnpmのバージョンを報告してください。それ以外の場合は、これを手助けして再現するのがずっと難しくなります。 –

答えて

2

これはCode Climate Chrome拡張機能のバグです。
アンインストールすると、エラーは消えてしまいます。

+0

Danさん、ありがとうございます。githubに関する問題についてのコメントを追加しました。 – AndreDurao

+0

ありがとうございました!何時間も私を救った。 –