我在我的StencilJS应用程序中有一个第三方库作为依赖项。这个库使用node附带的面向对象的模块: stream、events、..etc。在阅读了docs,之后,我的理解是在我的stencil.config.ts中使用rollup-plugin-node-polyfills将允许我使用那些通常只能在nodeJS应用程序中使用的模块。
import { Config } from '@stencil/core';
import nodePolyfills from 'rollup-plugin-node-polyfills';
export const config: Config = {
namespace: 'mycomponents',
plugins: [
nodePolyfills(),
]
};在遵循前面提到的文档中的配置后,我仍然收到错误

发布于 2020-03-19 22:16:10
似乎将节点更新到最新的稳定版本修复了它。从10 --> 13
https://stackoverflow.com/questions/60730361
复制相似问题