"Getting Started": build-app gives "Failed to find esbuild"
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- node.js
- Domain
- build-system
Research direction
Start with the Getting Started guide's "Creating Executables" section and reproduce the documented spago build-app command using the commands and versions listed in the issue. Check the esbuild installation guidance linked in the error. Done means the documented steps no longer produce "Failed to find esbuild", or the guide clearly explains the required installation step.
Written by the indexing model from the issue text.
Description
Following the steps in the Getting Started guide gives the following output when reaching the section "Creating Executables":
$ spago build-app
[info] Build succeeded.
[error] Failed to find esbuild. See https://esbuild.github.io/getting-started/#install-esbuild for ways to install esbuild.
purs version 0.15.4 and spago 0.20.9, node 16.13.0 and npm 8.19.2, ubuntu 20 on x86.
Steps to reproduce:
mkdir my-project
cd my-project
spago init
spago install lists foldable-traversable
cat << EOF > src/Euler.purs
module Euler where
import Prelude
import Data.List (range, filter)
import Data.Foldable (sum)
ns = range 0 999
multiples = filter (\n -> mod n 3 == 0 || mod n 5 == 0) ns
answer = sum multiples
EOF
cat << EOF > src/Main.purs
module Main where
import Prelude
import Euler (answer)
import Effect.Console (log)
main = do
log ("The answer is " <> show answer)
EOF
spago build
spago bundle-app
- Dominant language
- PureScript
- Stars
- 831
- Forks
- 138
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from purescript/spago
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
purescript/spago#1408 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
purescript/spago#1403 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 64/100
purescript/spago#1418 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
purescript/spago#1386 · 1 comment ·
-
bug UX
Difficulty 3/5 1-2 days Newbie friendliness 35/100
purescript/spago#1330 · 2 comments ·
All issues in purescript/spago
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
AppImage/appimage.github.io#9676 ·
Maintainers usually reply within 1 day
-
Flutter Improvement Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
getsentry/sentry-dart#4061 · 2 comments ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Cocoanetics/SwiftBash#95 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
ml-explore/mlx-c#136 ·
-
Xcode 27Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
airbnb/HorizonCalendar#349 ·