Msw: WARNING in ./node_modules/encoding/lib/iconv-loader

Created on 3 Dec 2020  路  5Comments  路  Source: mswjs/msw

Environment

| Name | Version |
| ---- | ------- |
| msw | 0.21.3 |
| node | 14 |
| OS | macos 11 |

Current behavior

in dev mode I have warning in console

Expected behavior

I don't wanna see it

Screenshots

懈蟹芯斜褉邪卸械薪懈械

bug reproduction node

All 5 comments

@kettanaito I took take a deeper look into this :+1:, also do you have any clues on what could be causing this?

That'd be of much help, @tigerabrodi!

That dependency originates from node-fetch that MSW conditionally requires in NodeJS environment.

- msw
  - node-fetch
    - encoding
      - iconv-loader

What is interesting, is that I don't experience this warning anywhere: local tests, reproduction repositories, example repositories, sandboxes.

@kettanaito I wonder if it has something to do with @olegKusov Operating System or something like that?

It would be great if we could somehow reproduce this.

Seems like they are using MacOS, so the operating system is unlikely to be the root cause. I'm thinking whether we should specify node-fetch as a tree-shackable/side-effect-free dependency of any sort so that webpack knows it doesn't have to transpile it if the end-user doesn't rely on it.

@kettanaito Maybe we should add a label that this needs a reproduction?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kettanaito picture kettanaito  路  3Comments

abrudin picture abrudin  路  3Comments

danielstreit picture danielstreit  路  3Comments

ff6347 picture ff6347  路  3Comments

derekr picture derekr  路  3Comments