react-select コンポーネント ( https://github.com/JedWatson/react-select )を使用しようとしていますが、ドキュメントを読んでいるときにこの文と混同しています。以下を参照してください。
Be sure to include styles at some point, probably during your bootstrapping
import 'react-select/dist/react-select.css';
Select コンポーネントを使用している React JSX ファイルにこの行をインポートすると、次のエラーが発生します。
...node_modules/react-select/dist/react-select.css:8\n.Select
{\n^\nParseError: Unexpected token\n>",
"traces": {
"Application Trace": [
{
"id": 39,
"trace": "app/views/layouts/application.html.erb:7:in
`_app_views_layouts_application_html_erb___377503645297909977_70313107001300'"
}
],
"Framework Trace": [
{
"id": 0,
"trace": "browserify-rails (3.3.0) lib/browserify-rails/browserify_processor.rb:220:in `run_browserify'"
},
{
"id": 1,
"trace": "browserify-rails (3.3.0) lib/browserify-rails/browserify_processor.rb:51:in `call'"
},
{
....
}
誰かがこの問題に関するヒントを提供できますか?