我正在使用react-slingshot启动套件启动应用程序。我想从 node_modules normalize.css 和 react-toolbox 加载但是我在构建过程中遇到这些错误:
ERROR in ./~/normalize.css/normalize.css
Module parse failed: /home/jules/projects/tourbnb-frontend/node_modules/normalize.css/normalize.css Line 9: Unexpected token {
You may need an appropriate loader to handle this file type.
| */
|
| html {
| font-family: sans-serif; /* 1 */
| -ms-text-size-adjust: 100%; /* 2 */
@ ./src/index.js 29:0-24
ERROR in ./~/react-toolbox/lib/app/App.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./style in /home/jules/projects/tourbnb-frontend/node_modules/react-toolbox/lib/app
@ ./~/react-toolbox/lib/app/App.js 11:13-31
这是我的 index.js:
import React from 'react';
import {render} from 'react-dom';
imp