Closed chrissound closed 1 year ago
Seems to be fixed with a npm run build
before the npm run dev
. Though this wasn't mentioned on the website / docs. I'd submit a PR for this but it seems the docs are in another repo (I'm not sure where).
Thanks for reporting this!
Could we not just set a dependency on
purescript
?
Where would the dependency be set? Currently, it's set in package.json
of this repo - is there another place where it would have needed to be specified for the project to compile correctly on your machine? Also, when you got that error, were you compiling deku
or the starter project?
Seems to be fixed with a
npm run build
before thenpm run dev
.
I'll make changes to the docs & report back once everything's in order.
I've fixed the docs to suggest spago build
instead of spago install
, and I've also created a postinstall
script that runs spago build
. Thanks again for reporting this!
Great thanks! Sorry I forgot to respond to your question:
Where would the dependency be set? Currently, it's set in
package.json
of this repo - is there another place where it would have needed to be specified for the project to compile correctly on your machine?
I still do not fully understand the packaging between purescript and npm, however I assumed that if purescript
is a dependency in package.json
, that the right purescript version would be installed with spago install
. But according to the first error this seems not to be the case.
Also, when you got that error, were you compiling
deku
or the starter project?
I think it would have been the starter project. I'm pretty sure I was just reading the docs from https://purescript-deku.netlify.app/
Thanks! I believe both of these issues are fixed now. Happy Dekuing!
On Mon, 1 May 2023, 20.00 Chris Stryczynski, @.***> wrote:
Great thanks! Sorry I forgot to respond to your question:
Where would the dependency be set? Currently, it's set in package.json of this repo - is there another place where it would have needed to be specified for the project to compile correctly on your machine?
I still do not fully understand the packaging between purescript and npm, however I assumed that if purescript is a dependency in package.json, that the right purescript version would be installed with spago install. But according to the first error this seems not to be the case.
Also, when you got that error, were you compiling deku or the starter project?
I think it would have been the starter project. I'm pretty sure I was just reading the docs from https://purescript-deku.netlify.app/
— Reply to this email directly, view it on GitHub https://github.com/mikesol/purescript-deku/issues/94#issuecomment-1529951226, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEAIJWM66PDSK37ZCATWQTXD7TZJANCNFSM6AAAAAAXHEAWT4 . You are receiving this because you modified the open/close state.Message ID: @.***>
Could we not just set a dependency on
purescript
? Because otherwise I ran into:Which was easily fixed (though I think it might catch out someone less familiar/experimental) with
npm install purescript
.However I run into errors with
npm run dev
and going to http://localhost:5173: