In testing v0.28.0-alpha.1 release saw this error popping up in projects that make /api/* HTTP calls.
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/owenbuckley/Workspace/analogstudios.net/repo/www.analogstudios.net/src/api/v2/events.js' imported from /Users/owenbuckley/Workspace/analogstudios.net/repo/www.analogstudios.net/node_modules/@greenwood/cli/src/plugins/resource/plugin-api-routes.js
at new NodeError (node:internal/errors:393:5)
at finalizeResolution (node:internal/modules/esm/resolve:323:11)
at moduleResolve (node:internal/modules/esm/resolve:916:10)
at defaultResolve (node:internal/modules/esm/resolve:1124:11)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:841:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ESMLoader.import (node:internal/modules/esm/loader:525:22)
at importModuleDynamically (node:internal/modules/esm/translators:110:35)
at importModuleDynamicallyCallback (node:internal/process/esm_loader:35:14) {
code: 'ERR_MODULE_NOT_FOUND'
Interestingly enough, everything still works though (the events calendar) even though the response in the browser is a 500🤷♂️
Details
Not sure what's happening, the API plugin should be guarding against that.
Type of Change
Summary
In testing v0.28.0-alpha.1 release saw this error popping up in projects that make
/api/*
HTTP calls.Interestingly enough, everything still works though (the events calendar) even though the response in the browser is a
500
🤷♂️Details
Not sure what's happening, the API plugin should be guarding against that.
Projects impacted