【发布时间】:2018-07-24 08:49:00
【问题描述】:
我尝试在我的本地工作站上成功运行的 bluemix / IBMCloud 上运行 REACT 应用程序。
我收到错误 Module not found: Can't resolve 'watson-react-components' 当我调用应用程序时(部署到 bluemix 成功) 这里的 import 语句是我的 java 脚本代码
import React from 'react';
import './Conversation.css';
import { InputWithButton } from 'watson-react-components';
import Message from './Message.js';
我通过以下安装命令安装包
# Install & build
npm install && npm install watson-react-components && npm run build
这是我在安装包的过程中得到的
│ └── whatwg-fetch@2.0.3
└─┬ watson-react-components@0.6.16
├── map-range@0.1.2
├── numeral@2.0.6
├─┬ prismjs@1.11.0
│ └─┬ clipboard@1.7.1
│ ├─┬ good-listener@1.2.2
│ │ └── delegate@3.2.0
│ ├── select@1.1.2
│ └── tiny-emitter@2.0.2
这里是应用程序上的错误消息
Failed to compile
./src/Conversation.js
Module not found: Can't resolve 'watson-react-components' in '/home/vcap/app/src'
【问题讨论】:
标签: reactjs components ibm-cloud jsx watson