Closed MdeLv closed 4 years ago
With ocaml.4.10.0, doing make test.byte just one or two more time was enough to get web app compilation completed.
With ocaml.4.11.1, the same trick worked.
Several tests showed that doing two additional make test.byte
or make test.opt
is necessary (a total of three times).
I could reproduce the same behavior with a new ocsigen start web app.
It seems related no npm install post-cli
and npm install autoprefixer
.
Can you observe the same behavior? Is seems to be a npm related issue (I'm not aware of all the npm stuff). How to fix that?
Could you try installing autoprefixer@9.8.6
and postcss@7.*
?
I think that postcss@8.*
may be causing problems, and autoprefixer@10.*
depends on postcss@8.*
.
I just tried the following:
npm install postcss@7.0.35
npm WARN saveError ENOENT: no such file or directory, open '/home/test/Documents/ocsigen-start/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/test/Documents/ocsigen-start/package.json'
npm WARN postcss-cli@8.1.0 requires a peer of postcss@^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN postcss-reporter@7.0.1 requires a peer of postcss@^8.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN ocsigen-start No description
npm WARN ocsigen-start No repository field.
npm WARN ocsigen-start No README data
npm WARN ocsigen-start No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ postcss@7.0.35
updated 1 package and audited 176 packages in 1.653s
$ npm install autoprefixer@9.8.6
npm WARN saveError ENOENT: no such file or directory, open '/home/test/Documents/ocsigen-start/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/test/Documents/ocsigen-start/package.json'
npm WARN postcss-cli@8.1.0 requires a peer of postcss@^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN postcss-reporter@7.0.1 requires a peer of postcss@^8.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN ocsigen-start No description
npm WARN ocsigen-start No repository field.
npm WARN ocsigen-start No README data
npm WARN ocsigen-start No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ autoprefixer@9.8.6
updated 1 package and audited 176 packages in 1.793s
Then I tried make test.byte (with db already up&running). I got the same behavior as described before (an error, then two additional make test.byte "fixed" the issue).
Could you reproduce the same behavior? I alert you that I'm unaware of that npm stuff.
Oh, in fact I can reliably reproduce this with a fresh app created with eliom-distillery. I'll look into it.
Alright, I fixed the problem by specifying in the Makefile.style
versions of autoprefixer and postcss that are known to work. (see https://github.com/ocsigen/ocsigen-start/commit/8cf836555c42243020397dbbee9992d859f69514)
A new version of ocsigen-start with this fix will be released soon. (https://github.com/ocaml/opam-repository/pull/17396)
In the meantime you can apply the change in the above commit to your project by hand.
Fixed and already on opam repository. Thank you.
Following the very recent upgrade of ocsigen-start 2.18.0 to 2.19.2, here is the error when building the wabapp. Have you any idea of how to fix that? Thanks