elm-pages icon indicating copy to clipboard operation
elm-pages copied to clipboard

elm-pages run script/src/AddRoute.elm fails when run before first build

Open adamdicarlo opened this issue 1 year ago • 4 comments

I'm using Elm Pages v3.0.9.

This is easy to reproduce with this command:

$ npx elm-pages init my-site && cd my-site && npx elm-pages run script/src/AddRoute.elm AboutThisSite

The output I get is:

Creating my-site project...
Project is successfully created in `/home/adam/src/my-site`.
Trace
    at Command.<anonymous> (file:///home/adam/.npm/_npx/f522c3e74dfcf71b/node_modules/elm-pages/generator/src/cli.js:168:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

If I run npx elm-pages build, I can then run the elm-pages run ... command successfully.

adamdicarlo avatar Oct 31 '23 18:10 adamdicarlo