文件夹结构:├── index.js (start point in Webpack)│ ├── Home──Home.js组件/Home/Home.js将我的类编写为- export class Home extends React.Component {}
组件/index.js已导出为- export {Home/components
我遇到这个错误,npm start在执行下面的import时运行得很好: import Header from 'semantic-ui-react/dist/commonjs/elements/Header'; 但是当我做npm测试时,它总是告诉我: ReferenceError: Header is not defined 但是,当我将主文件中的import更改为以下行时,npm测试运行良好 import/node_modules/semantic-ui-react<
我正在尝试开发一个结合了Gatsby、React和Bootstrap 5的网站。我找到了一个我喜欢使用的react-包。我让它在开发环境下运行得很好。这是产生的错误; success Rewriting compilation hashes - 0.014s
success Writing page-data.json files to publicdocs page for more info on this error: https://gatsby.dev/debug-