Closed carylwyatt closed 10 months ago
Name | Link |
---|---|
Latest commit | 54de04911bd02fc68786dfe051bd4a30d351afa4 |
Latest deploy log | https://app.netlify.com/sites/hathitrust-firebird-common/deploys/659f198341ae57000810290c |
Deploy Preview | https://deploy-preview-57--hathitrust-firebird-common.netlify.app/ |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
@carylwyatt I have tested your PR locally and appear the issue Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/htapps/babel/firebird-common/node_modules/kleur/colors.mjs' imported from /htapps/babel/firebird-common/node_modules/@sveltejs/vite-plugin-svelte/src/utils/log.js
. I have applied the following steps to fix the issue, but without success
npm i
npm audit fix
npm install -g npm@10.3.0
# the output of npm run babel
showed me a message to upgrade npm versionDo you have some idea how to fix it?
@liseli With npm audit fix
you updated some packages, which will have changed the package.json
, so I'm not sure how this will work, but this could be a caching problem. Usually when I have issues with "module not found" even after I install, I try this:
rm -rf node_modules
rm -f package-lock.json
npm cache clean --force
npm install
But it will install the dependencies from your post-audit-fix updated package.json
... which maybe isn't bad, but I haven't tested that.
It is working right now. I did npm install --cache /tmp/empty-cache
to use a temporary cache instead of the actual one. After that, it worked. I will approved this PR
When working on Advanced Search locally, the search part doesn't actually work thanks to the hard-coded
https
protocol. This update adds a check for the currentlocation.protocol
, then builds the search URL usinghttps
if that's the current protocol, otherwise falls back tohttp
.This is up on
dev-3
and looks like it's working.ls
advanced searchcatalog
advanced searchBut I'm interested to see if anyone can get my changes working locally with my new babel-local-dev firebird workflow.
Perhaps:
/babel/firebird-common
,git fetch
and switch to theTTO-166
branchdocker compose run node bash
will drop you into aI have no name!
exec where you can run npm commandscd /htapps/babel/firebird-common
npm run babel
will build your files (and the asset manifest) and watch them for changes you makeif you got an error about missing a file or a package, you might need to
npm i
for good measure (I had this problem today)I'm interested to see if this works for other people like I think it should. I'm also 100% sure there is a better way to run commands in docker than what I've done here, but it works!
And if you get my changes working locally, hopefully you can do an advanced search π€