Closed sdumetz closed 5 months ago
Looks good to me, thanks! Similar to #242 just looking to make sure it's not disruptive to non-developer users. I should be able to bundle these together when we are ready to move.
@sdumetz Would really like to make this jump but need the package to build with the included docker profile as well. I tried bumping to Ubuntu 20 and Node 16 but it freezes for me on build. I know you are not using it, but if you have a chance could you just see if https://github.com/Smithsonian/dpo-voyager/commits/dev-upgrade/ will build for you? It would be great to get somewhat back on track with Node version.
Hi,
I checked-out the branch and the docker image builds fine (both development and production). If I delete dist/
and services/server/bin/
, it builds the client and server before starting the server
npm install --dev
is redundant as it is the default behavior, but I didn't see it causing any problem otherwise.
Didn't test if the server was working properly, I stopped at Server ready and listening on port 8000
.
I'm not familiar with those scripts though so I'm not even sure I ran them properly?
@sdumetz Thanks for taking a look. Good to know it is at least building for you. It must be something specific about my configuration. I added in the install --dev because after bumping the Node version it was only installing production dependencies when node_env == production. But maybe that's a symptom of whatever else is going on. Thanks again for taking a look.
Merged here: https://github.com/Smithsonian/dpo-voyager/tree/dev-upgrade - finally got a solid build. Thanks for the PR and sorry for the delay!
Peer dependency that caused an error under the newer npm versions:
-
sass-loader@12.3.0
peer dependency overnode-sass@"^4.0.0 || ^5.0.0 || ^6.0.0"
whilenode-sass@^7.0.3
is installed:sass-loader@12.3.0
to latest. The major version change only marks the dropped support for nodejs < 14.The peer dependency warning on
schema-utils@3.1.1
(peer dependency overajv@^6.9.1
) couldn't be solved because it doesn't look like a good idea to downgradeajv
and it's not possible to upgrade all packages requiring it asraw-loader
has not been updated with a newer version.The preferred solution here might be to drop raw-loader and use the asset-modules provided by webpack 5 but that's another subject better left for some future PR.
Added an "engine" requirement to enforce the new min nodejs version of
>=14.15.0
, which is still generous given the official maintenance timeline. It is also in line with the requirement of #242. Still too recent for Ubuntu 18 though.I checked the old/new
dist/
folders and it reported no change after the update.