Add a middleware.ts file, import Resource from sst and try to use it (e.g. Resource.MySecret.value)
Error
Module build failed: UnhandledSchemeError: Reading from "node:process" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
Import trace for requested module:
node:process
./node_modules/.pnpm/sst@3.0.32_hono@4.4.0/node_modules/sst/dist/resource.js
./node_modules/.pnpm/sst@3.0.32_hono@4.4.0/node_modules/sst/dist/index.js
Steps to reproduce:
middleware.ts
file, importResource
fromsst
and try to use it (e.g.Resource.MySecret.value
)Error
SST version: 0.0.403