Copser
I have a Heroku deploy problem, currently, it’s failing on installing package.json and the error is
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Phoenix app detected
remote:
remote: -----> Loading configuration and environment
remote: Loading config...
remote: WARNING: phoenix_static_buildpack.config wasn't found in the app
remote: Using default config from Phoenix static buildpack
remote: Detecting assets directory
remote: WARNING: no package.json detected in root nor custom directory
remote: * assuming phoenix 1.3.x and later, please check config file
remote: Will use phoenix configuration:
remote: * assets path assets
remote: * mix tasks namespace phx
remote: Will use the following versions:
remote: * Node 6.9.2
remote: Will export the following config vars:
remote: DATABASE_URL
remote: NODE_MODULES_CACHE
remote: POOL_SIZE
remote: SECRET_KEY_BASE
remote: * MIX_ENV=prod
remote: -----> Installing binaries
remote: Resolving node version 6.9.2...
remote: Downloading and installing node 6.9.2...
remote: Installing Node 6.9.2...
remote: Using default npm version
remote:
remote: -----> Building dependencies
remote: Installing and caching node modules
remote: npm WARN package.json @ No description
remote: npm WARN package.json @ No README data
remote: npm ERR! addLocal Could not install /tmp/build_86e0734371e98eb49ec08fbf671e37ba/deps/phoenix
remote: npm ERR! addLocal Could not install /tmp/build_86e0734371e98eb49ec08fbf671e37ba/deps/phoenix_html
remote: npm ERR! Linux 4.4.0-1057-aws
remote: npm ERR! argv "/tmp/build_86e0734371e98eb49ec08fbf671e37ba/.heroku/node/bin/node" "/tmp/build_86e0734371e98eb49ec08fbf671e37ba/.heroku/node/bin/npm" "install" "--quiet" "--unsafe-perm" "--userconfig" "/tmp/build_86e0734371e98eb49ec08fbf671e37ba/npmrc"
remote: npm ERR! node v6.9.2
remote: npm ERR! npm v3.10.9
remote: npm ERR! path /tmp/build_86e0734371e98eb49ec08fbf671e37ba/deps/phoenix
remote: npm ERR! code ENOENT
remote: npm ERR! errno -2
remote: npm ERR! syscall open
remote:
remote: npm ERR! enoent ENOENT: no such file or directory, open '/tmp/build_86e0734371e98eb49ec08fbf671e37ba/deps/phoenix'
remote: npm ERR! enoent ENOENT: no such file or directory, open '/tmp/build_86e0734371e98eb49ec08fbf671e37ba/deps/phoenix'
remote: npm ERR! enoent This is most likely not a problem with npm itself
remote: npm ERR! enoent and is related to npm not being able to find a file.
remote: npm ERR! enoent
remote:
remote: npm ERR! Please include the following file with any support request:
remote: npm ERR! /tmp/build_86e0734371e98eb49ec08fbf671e37ba/assets/npm-debug.log
remote: ! Push rejected, failed to compile Phoenix app.
I have tried https://help.heroku.com/18PI5RSY/how-do-i-clear-the-build-cache, also I have elixir-buildpack.config
elixir_version=1.8.2
erlang_version=21.2.5
assets_path=assets
phoenix_ex=phx
and phoenix_static_buildpack.config
clean_cache=true
compile="compile"
config_vars_to_export=(DATABASE_URL)
node_version=6.9.5
npm=3.10.8
phoenix_relative_path=.
remove_node=false
package.json is the default one
{
"repository": {},
"license": "MIT",
"scripts": {
"deploy": "webpack --mode production",
"watch": "webpack --mode development --watch"
},
"dependencies": {
"phoenix": "file:../deps/phoenix",
"phoenix_html": "file:../deps/phoenix_html"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"babel-loader": "^8.0.0",
"copy-webpack-plugin": "^4.5.0",
"css-loader": "^2.1.1",
"mini-css-extract-plugin": "^0.4.0",
"optimize-css-assets-webpack-plugin": "^4.0.0",
"uglifyjs-webpack-plugin": "^1.2.4",
"webpack": "4.4.0",
"webpack-cli": "^2.0.10"
}
}
but still no joy in solving the error above, did someone had something similar, how did you solved it? Thanks
Trending in Questions
Hey guys,
I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly
Do you guys have any suggestions what is the best prac...
New
Hello!
Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app.
I creat...
New
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
Anyone here using Honeybadger?
My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of
Bandit.HTTPError...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
There are three potential reasons for members of this forum to have a look at https://vutuv.de
You are tired or annoyed of LinkedIn.
Yo...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixir-ls
- #elixirconf-us
- #ai
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
Copser
I have manage to solve
WARNING: no package.json detected in root nor custom directoryby addingassets_path="."instead ofphoenix_relative_pathbut no joy I’m still having problems with not been able to deploy the app properly, I don’t understand why he can’t see deps foldertenzil
Can you try the following
in phoenix_static_buildpack.config, set node version above 8 (i got errors on node modules for lesser versions)
or set node_version=10.15.0
Copser
ok so changing node version helped but now this
tenzil
hmm ok, now thats a path issue.
Thought of two things,
2.If that didn’t work, can you try reverting back to old version (node 6.9.2) and try the same.
Copser
so in my
phoenix_static_buildpackI have definedand in
elixir_buildpack.configI have definedreverting back to old version did not solve the problem, I would really love if elixir didn’t use npm but yarn.
tenzil
anyluck with the node 10.15, with the same settings? or the same error persist?
Copser
it’s the same.
why should I ever change the
depspath, I don’t get it, I have spent four hours on this.tenzil
Hey found a similar thread in elixirforum, please check and try this
And this one as well
https://github.com/gigalixir/gigalixir-getting-started/issues/8#issuecomment-529055892
Copser
OMG, I didn’t set the elixir build pack so I was not building it properly, thanks @tenzil I need to go and chill a bit
After I did
heroku create --buildpack hashnuke/elixirI forgot toheroku buildpacks:set hashnuke/elixir, and that was it, people read the documentationoutlog
you can easily use yarn, or parcel - or whatever is the latest and greatest..
I use yarn on heroku - I just have a
yarn deployin mycompilefile - which of course calls the deploy script in package.json..