Closed pete-murphy closed 9 months ago
I cloned this repository and followed the steps in the README, specifically
README
nix develop
npm install
npm run build
After those, npm run serve fails with
npm run serve
✘ [ERROR] Cannot serve an entry point without an output path
That seems to be hitting this path in esbuild https://github.com/evanw/esbuild/blob/a652e730ff07b9081470ef6965f3d54daa7b2aab/pkg/api/serve_other.go#L726
esbuild
If I add --outfile=dist/index.js to the "serve" script in package.json that seems to fix things.
--outfile=dist/index.js
"serve"
package.json
- "serve": "spago build && esbuild --bundle index.js --servedir=dist", + "serve": "spago build && esbuild --bundle index.js --outfile=dist/index.js --servedir=dist",
I can make a PR with that change if it makes sense.
I just updated the dev dependencies significantly so I likely introduced this bug then. I would love a PR, thanks!
I cloned this repository and followed the steps in the
README
, specificallynix develop
npm install
npm run build
After those,
npm run serve
fails withThat seems to be hitting this path in
esbuild
https://github.com/evanw/esbuild/blob/a652e730ff07b9081470ef6965f3d54daa7b2aab/pkg/api/serve_other.go#L726If I add
--outfile=dist/index.js
to the"serve"
script inpackage.json
that seems to fix things.I can make a PR with that change if it makes sense.