Comments (3)
Thanks for reporting this. I've opened a fix at mswjs/interceptors#286. Will publish today.
from headers-polyfill.
I work on RedwoodJS and our CI just ran into the same thing: https://github.com/redwoodjs/redwood/actions/runs/3059432181/jobs/4936841173#step:8:1264
We use MSW in the context of Storybook so the stack trace is a bit different, but the initial error is the same:
ModuleNotFoundError: Module not found: Error: Package path ./lib is not exported from package /Users/dom/prjcts/smoke-test-debug/node_modules/headers-polyfill (see exports field in /Users/dom/prjcts/smoke-test-debug/node_modules/headers-polyfill/package.json)
at /Users/dom/prjcts/smoke-test-debug/node_modules/webpack/lib/Compilation.js:2016:28
at /Users/dom/prjcts/smoke-test-debug/node_modules/webpack/lib/NormalModuleFactory.js:798:13
at eval (eval at create (/Users/dom/prjcts/smoke-test-debug/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:10:1)
at /Users/dom/prjcts/smoke-test-debug/node_modules/webpack/lib/NormalModuleFactory.js:270:22
at eval (eval at create (/Users/dom/prjcts/smoke-test-debug/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:9:1)
at /Users/dom/prjcts/smoke-test-debug/node_modules/webpack/lib/NormalModuleFactory.js:434:22
at /Users/dom/prjcts/smoke-test-debug/node_modules/webpack/lib/NormalModuleFactory.js:116:11
at /Users/dom/prjcts/smoke-test-debug/node_modules/webpack/lib/NormalModuleFactory.js:670:25
at /Users/dom/prjcts/smoke-test-debug/node_modules/webpack/lib/NormalModuleFactory.js:855:8
at /Users/dom/prjcts/smoke-test-debug/node_modules/webpack/lib/NormalModuleFactory.js:975:5
Downgrading to 3.0.10 fixes it.
from headers-polyfill.
It's an issue within mswjs/interceptors, therefore I've moved the issue to mswjs/interceptors#285
from headers-polyfill.
Related Issues (20)
- License? HOT 2
- Keep private properties under symbols HOT 1
- Invalid Headers.js syntax ? HOT 8
- Missing "./lib" export in "headers-polyfill" package HOT 2
- Version 3.1.0 => Error: Package subpath './lib' is not defined by "exports" HOT 6
- Error: Package path ./lib is not exported from package HOT 1
- There's no lib folder which is called from /esm/package.json HOT 1
- Webpack compilation error after update HOT 4
- The module does not support ESM correctly HOT 1
- "flattenHeadersObject" joins multi-value headers but semicolon, not comma HOT 1
- Package subpath './lib' is not defined by "exports" HOT 13
- Package subpath './lib' is not defined by "exports" HOT 3
- Cypress: Unexpected token on nullish coalescence operator HOT 12
- Nullish coalescing operator (??) causing webpack build to fail HOT 2
- 3.2.0 does not handle Set-Cookie as expected HOT 2
- Can't import the named export 'splitCookiesString' HOT 7
- Move custom Headers methods to transformer functions HOT 1
- response3.headers.all is not a function HOT 4
- Losing headers when using Undici in latest Node 18.x HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from headers-polyfill.