簡體   English   中英

Reactjs。 我無法在本地運行演示

[英]Reactjs. I can not run the demo locally

我下載了該庫: https : //github.com/jquense/react-widgets

我打開了文件:docs / index.html

控制台顯示錯誤:

GET文件:/// F:/Extjs/breeze/react-widgets-2.6.1/docs/docs.js net :: ERR_FILE_NOT_FOUND

我更改了這一行:

之前:

 <script src="docs.js" type="text/javascript"></script>

后:

<script src="components/docs.jsx" type="text/javascript"></script>

控制台顯示錯誤:

未捕獲到的SyntaxError:意外令牌{docs.jsx:3

我該如何跑步?

我做了以下事情:

git clone https://github.com/jquense/react-widgets
cd react-widgets
npm install 
gulp dev-docs

然后在我的瀏覽器中http:// localhost:8080 / docs / index.htm#/

對你有用嗎?

歡呼奧利弗

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM