我正试图摆脱以下错误:
Unhandled Promise rejection: Cannot find module
"../algorithms/RSASSA-PKCS1-v1_5". ; Zone: <root> ;
Task: Promise.then ; Value: Error: Cannot find module
"../algorithms/RSASSA-PKCS1-v1_5".
at webpackEmptyContext (algorithms sync:2)
at SupportedAlgorithms.normalize (SupportedAlgorithms.js:84)
at SubtleCrypto.importKey (SubtleCrypto.js:279)
我还使用@angular-builders/custom-webpack
来强制webpack不遵守this Github issue上报告的说明。
这是我的@trust/webcrypto
(我认为这实际上没有用):
webpack.config.json
我当前的配置是:
module.exports = {
externals: {
'node-fetch': 'fetch',
'text-encoding': 'TextEncoder',
'whatwg-url': 'window',
'isomorphic-fetch': 'fetch',
'@trust/webcrypto': 'crypto'
}
}