我对 React 很陌生,我有一个关于语义 UI 的问题。
我正在关注一个教程,其中我必须通过包含在 App.js 中使用语义 UI 的 Header 组件
import { Header } from 'semantic-ui-css'
Run Code Online (Sandbox Code Playgroud)
但是,每当页面使用此代码编译时,它都会返回如下错误消息:
ReferenceError: jQuery is not defined
./node_modules/semantic-ui-css/semantic.js
node_modules/semantic-ui-css/semantic.js:497
494 | });
495 |
496 |
> 497 | })( jQuery, window, document );
498 |
499 | /*!
500 | * # Semantic UI 2.4.1 - Form Validation
Run Code Online (Sandbox Code Playgroud)
在寻找解决方案时,我阅读了许多运行建议
ReferenceError: jQuery is not defined
./node_modules/semantic-ui-css/semantic.js
node_modules/semantic-ui-css/semantic.js:497
494 | });
495 |
496 |
> 497 | })( jQuery, window, document );
498 …Run Code Online (Sandbox Code Playgroud)