-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I've set up the repo so that npm run build
works, but when I run npm run validate
, it fails on the test:e2e:run
step.
Steps to reproduce:
- Clone the repo
- Copy
.env.default
to.env
- Run
npm run setup
- Run
npm run build
- Run
npm run validate
(Ornpm run test:e2e:run
)
Error message:
> test:e2e:run
> cross-env CI=true playwright test
[WebServer]
> start:mocks
> cross-env NODE_ENV=production MOCKS=true tsx .
[WebServer] πΆ Mock server installed
[WebServer] SyntaxError: The requested module 'lru-cache' does not provide an export named 'default'
[WebServer] /Users/isaac/Documents/code/epic-web-examples/epic-stack-with-keystatic/build/server/assets/server-build-DjeGgzJ1.js:64
import LRU, { LRUCache } from "lru-cache";
^
SyntaxError: The requested module 'lru-cache' does not provide an export named 'default'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:131:21)
at ModuleJob.run (node:internal/modules/esm/module_job:213:5)
at ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at getBuild (file:///Users/isaac/Documents/code/epic-web-examples/epic-stack-with-keystatic/server/index.ts:202:4)
at file:///Users/isaac/Documents/code/epic-web-examples/epic-stack-with-keystatic/server/index.ts:216:34
Error: Process from config.webServer was not able to start. Exit code: 1
ERROR: "test:e2e:run" exited with 1.
Node version: 20.9.0
Npm version: 10.5.0
Let me know if there's something else, you'd need from me to reproduce this. Thanks!
Metadata
Metadata
Assignees
Labels
No labels