Eli*_*nes 1 javascript heroku reactjs
这是一个 React 应用程序,具有样式化组件,通过将 Node 后端部署到 Heroku git push heroku master
我从一个单独的文件中导入每个组件的样式import {...} from './style'。
文件结构在哪里:
OptionsCarousel
|index.js
|style.js
这对我来说非常有意义,并且通过npm start和npm run build -> serve -s build. 没有问题。但是在部署到 Heroku 时,在优化构建阶段,它失败并显示错误:
remote: Creating an optimized production build...
remote: Failed to compile.
remote:
remote: ./src/OptionsCarousel/index.js
remote: Cannot find file './style' in './src/OptionsCarousel'.
任何有关构建此结构的更好方法以及导致此问题的原因的任何建议都将不胜感激。
| 归档时间: |
|
| 查看次数: |
1355 次 |
| 最近记录: |