You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.
I recently added Tailwind and CRACO to my application and pushed to Heroku.
The problem I face now is this Heroku error: Error injecting runtime env: bundle not found '/app/build/static/js/*.js'. See: https://github.com/mars/create-react-app-buildpack/blob/master/README.md#user-content-custom-bundle-location
I did not manually change the bundle location, but I suspect craco may be the cause of this error.
-----> Using buildpack: https://github.com/mars/create-react-app-buildpack
-----> 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_PRODUCTION=true
NPM_CONFIG_LOGLEVEL=error
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=false
-----> Installing binaries
engines.node (package.json): 14.x
engines.npm (package.json): 7.x
Resolving node version 14.x...
Downloading and installing node 14.17.0...
Bootstrapping npm 7.x (replacing 6.14.13)...
npm 7.x installed
-----> Restoring cache
Caching has been disabled because NODE_MODULES_CACHE=false
-----> Installing dependencies
Installing node modules
added 2200 packages, and audited 2201 packages in 4m
13 packages are looking for funding
run `npm fund` for details
104 vulnerabilities (91 moderate, 13 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues possible (including breaking changes), run:
npm audit fix --force
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
-----> Build
Detected both "build" and "heroku-postbuild" scripts
Running heroku-postbuild
> [email protected] heroku-postbuild
> npm rebuild node-sass
rebuilt dependencies successfully
-----> Pruning devDependencies
Skipping because NPM_CONFIG_PRODUCTION is 'true'
-----> Build succeeded!
=====> Downloading Buildpack: https://github.com/mars/create-react-app-inner-buildpack.git#v9.0.0
=====> Detected Framework: React.js (create-react-app)
Writing `static.json` to support create-react-app
Enabling runtime environment variables
=====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-static.git
=====> Detected Framework: Static HTML
-----> Installed nginx 1.19.0 to /app/bin
Using release configuration from last framework (Static HTML).
-----> Discovering process types
Procfile declares types -> (none)
Default types for buildpack -> web
-----> Compressing...
Done: 142.1M
-----> Launching...
Released v143
https://nantoo.herokuapp.com/ deployed to Heroku
The build was successful, however the application shows a 404 Not Found when I try to open it. So I checked the logs and found the aforementioned error.
I checked to make sure this buildpack is still installed.
Is it something I am missing?
The text was updated successfully, but these errors were encountered:
I'm unfamiliar with CRACO, but since it is a configuration override tool, it seems likely to lead to problems with this buildpack, which also does some configuration tricks.
This buildpack was created years ago, and is not being enhanced nor maintained anymore.
I would suggest removing this buildpack from your app, and then go forward setting up the Heroku Node buildpack, and the static site buildpack yourself, thereby eliminating the "magic" that is causing conflicts.
I recently added Tailwind and CRACO to my application and pushed to Heroku.
The problem I face now is this Heroku error:
Error injecting runtime env: bundle not found '/app/build/static/js/*.js'. See: https://github.com/mars/create-react-app-buildpack/blob/master/README.md#user-content-custom-bundle-location
I did not manually change the bundle location, but I suspect craco may be the cause of this error.
Here is my
craco.config.js
:And my
package.json
:Here is the build log:
The build was successful, however the application shows a
404 Not Found
when I try to open it. So I checked the logs and found the aforementioned error.I checked to make sure this buildpack is still installed.
Is it something I am missing?
The text was updated successfully, but these errors were encountered: