You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems to be related to this issue: websockets/ws#1538 but no steps here resolve my setup. I've added the webpack overrides to my environment webpack transformers as below:
exportconstmodifyOutputTransformer=(configMutator)=>{constnewWebpackConfig={resolve: {mainFields: ['main','browser'],},};configMutator.merge([newWebpackConfig]);returnconfigMutator;};
...
/** * generates the component previews during development and during build */preview(): EnvHandler<Preview>{/** * @see https://bit.dev/docs/react-env/component-previews */returnReactPreview.from({mounter: this.previewMounter,
hostDependencies,transformers: [modifyOutputTransformer],});}
...
Specifications
Bit version: 1.0.0
Workspace type: harmony
Node version: 16
npm / yarn version:(npm v8.19.4)
Platform: ubuntu
The text was updated successfully, but these errors were encountered:
Can you please console.log(configMutator.raw) and see that the final webpack config is as expected?
Also, I'm not sure how this config will affect other libraries used by the preview. it might break it completely.
Description
Since upgrading bit and my envs I now get an issue with
ws_1.WebSocketServer
being undefined.Relevant code:
Seems to be related to this issue: websockets/ws#1538 but no steps here resolve my setup. I've added the webpack overrides to my environment webpack transformers as below:
Specifications
1.0.0
The text was updated successfully, but these errors were encountered: