我试图更新一些旧法典,以消除警告。 我升级了一些使用加密模块的代码。 然而,第5.88.2号网络不承认新的辛迪加。 我的新进口就是这样:
const crypto = await import( node:crypto );
完全错误就是这样。 它表明,我可能需要另一个假想,但我无法找到。
ERROR in node:crypto
Module build failed: UnhandledSchemeError: Reading from "node:crypto" 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.
at C:xxxxxfunctionsauth-check
ode_moduleswebpacklibNormalModule.js:838:25
at Hook.eval [as callAsync] (eval at create (C:xxxxxfunctionsauth-check
ode_modules apablelibHookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (C:xxxxxfunctionsauth-check
ode_modules apablelibHook.js:18:14)
at Object.processResource (C:xxxxxfunctionsauth-check
ode_moduleswebpacklibNormalModule.js:835:8)
at processResource (C:xxxxx
ode_modulesloader-runnerlibLoaderRunner.js:220:11)
at iteratePitchingLoaders (C:xxxxxfunctionsauth-check
ode_modulesloader-runnerlibLoaderRunner.js:171:10)
at runLoaders (C:xxxxx
ode_modulesloader-runnerlibLoaderRunner.js:398:2)
at NormalModule._doBuild (C:xxxxxauth-check
ode_moduleswebpacklibNormalModule.js:825:3)
at NormalModule.build (C:xxxxxfunctionsauth-check
ode_moduleswebpacklibNormalModule.js:969:15)
at C:xxxxxfunctionsauth-check
ode_moduleswebpacklibCompilation.js:1377:12
@ ./src/index.ts 6:21-42
webpack 5.88.2 compiled with 1 error in 2790 ms