-
Notifications
You must be signed in to change notification settings - Fork 377
Description
Context
I've just reset my dev environment which pulls stoplight/prsim:5 as a part of its stack but it's failing to start with the error:
2025-04-15 13:52:20 Error: Cannot find module 'jsonrepair'
2025-04-15 13:52:20 Require stack:
2025-04-15 13:52:20 - /usr/src/prism/packages/cli/dist/util/createServer.js
2025-04-15 13:52:20 - /usr/src/prism/packages/cli/dist/commands/mock.js
2025-04-15 13:52:20 - /usr/src/prism/packages/cli/dist/index.js
2025-04-15 13:52:20 at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
2025-04-15 13:52:20 at Function.Module._load (node:internal/modules/cjs/loader:981:27)
2025-04-15 13:52:20 at Module.require (node:internal/modules/cjs/loader:1231:19)
2025-04-15 13:52:20 at require (node:internal/modules/helpers:177:18)
2025-04-15 13:52:20 at Object.<anonymous> (/usr/src/prism/packages/cli/dist/util/createServer.js:19:22)
2025-04-15 13:52:20 at Module._compile (node:internal/modules/cjs/loader:1364:14)
2025-04-15 13:52:20 at Object.Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
2025-04-15 13:52:20 at Module.load (node:internal/modules/cjs/loader:1203:32)
2025-04-15 13:52:20 at Function.Module._load (node:internal/modules/cjs/loader:1019:12)
2025-04-15 13:52:20 at Module.require (node:internal/modules/cjs/loader:1231:19)
The openapi file being used was last updated 2 months ago so I unlikely to be the culprit.
Current Behavior
Mock fails to start
Expected Behavior
Mock should start just as before
Possible Workaround/Solution
Fix docker-compose image reference for Prism to stoplight/prism:5.12.1
Steps to Reproduce
- Pull image stoplight/prism:5
- Start with an openapi.yaml file (https://github.com/ministryofjustice/opg-use-an-lpa/blob/main/mock-integrations/opg-data-lpa/mock-openapi.yaml)
- Service fails to start
Environment
- Version used: 5.14.0 (pulled approx 13:40 on Tuesday 15th April)
- Environment name and version (e.g. Chrome 39, node.js 5.4):
- Operating System and version (desktop or mobile):
- Link to your environment/workspace/project: https://github.com/ministryofjustice/opg-use-an-lpa
will-wow, mattagra, mkano-jpd, KEY60228 and yellowhat