Estoy tratando de implementar mi aplicación de reacción usando Heroku, pero me sigue dando este error:
Module not found: Error: Can't resolve './pages/Courselesson' in '/tmp/build_b7e086f6/src'Y estoy seguro de que el componente tiene el nombre correcto y está dentro de la carpeta "páginas".
Aquí está el registro de compilación completo de heroku:
-----> Building on the Heroku-20 stack -----> Using buildpack: https://github.com/mars/create-react-app-buildpack.git -----> React.js (create-react-app) multi app detected =====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-multi.git =====> Detected Framework: Multipack =====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-nodejs.git =====> Detected Framework: Node.js -----> Creating runtime environment NPM_CONFIG_LOGLEVEL=error NODE_VERBOSE=false NODE_ENV=production NODE_MODULES_CACHE=true -----> Installing binaries engines.node (package.json): 16.3.0 engines.npm (package.json): unspecified (use default) Resolving node version 16.3.0... Downloading and installing node 16.3.0... Using default npm version: 7.15.1 -----> Installing dependencies Installing node modules added 1436 packages, and audited 1437 packages in 26s 165 packages are looking for funding run `npm fund` for details 6 moderate severity vulnerabilities To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. -----> Build Running build > fomwam@0.1.0 build > react-scripts build Creating an optimized production build... Failed to compile. Module not found: Error: Can't resolve './pages/Courselesson' in '/tmp/build_b7e086f6/src' -----> Build failed We're sorry this build is failing! You can troubleshoot common issues here: https://devcenter.heroku.com/articles/troubleshooting-node-deploys If you're stuck, please submit a ticket so we can help: https://help.heroku.com/ Love, Heroku ! Push rejected, failed to compile React.js (create-react-app) multi-app. ! Push failedUtilicé este complemento, este complemento que distingue entre mayúsculas y minúsculas , pero aún así, no funciona.